How to get the Response Data using REST API url in ios
<p>How to get the Response Data from REST API  url in iOS.</p>

<p><a href="https://i.stack.imgur.com/yCLCk.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/yCLCk.png" alt="enter image description here"></a></p>

<pre><code>NSURL *url = [NSURL URLWithString:@"http://sssssssssssssssss"];
//NSData * JSONdata = [NSJSONSerialization dataWithJSONObject:dictionary options:0 error:&amp;error];
        NSString *headerValue = [NSString stringWithFormat:@"%@" , testToken];
NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:url];
        [request setHTTPMethod:@"POST"];
        [request setValue:@"application/json; charset=utf-8" forHTTPHeaderField:@"Content-Type"];
        [request setHTTPBody:JSONBody];
        [request addValue:headerValue forHTTPHeaderField:@"oauth_token"];
        // examine the response
</code></pre>

<p>Thanks in Advance</p>