CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "https://www.narro.co/api/v1/articles/56ca50f7c1dac403006bb309");

struct curl_slist *headers = NULL;
headers = curl_slist_append(headers, "authorization: Bearer <access_token>");
headers = curl_slist_append(headers, "accept: application/json");
curl_easy_setopt(hnd, CURLOPT_HTTPHEADER, headers);

CURLcode ret = curl_easy_perform(hnd);
var client = new RestClient("https://www.narro.co/api/v1/articles/56ca50f7c1dac403006bb309");
var request = new RestRequest(Method.GET);
request.AddHeader("authorization", "Bearer <access_token>");
request.AddHeader("accept", "application/json");
IRestResponse response = client.Execute(request);
package main

import (
	"fmt"
	"net/http"
	"io/ioutil"
)

func main() {

	url := "https://www.narro.co/api/v1/articles/56ca50f7c1dac403006bb309"

	req, _ := http.NewRequest("GET", url, nil)

	req.Header.Add("accept", "application/json")
	req.Header.Add("authorization", "Bearer <access_token>")

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := ioutil.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}
OkHttpClient client = new OkHttpClient();

Request request = new Request.Builder()
  .url("https://www.narro.co/api/v1/articles/56ca50f7c1dac403006bb309")
  .get()
  .addHeader("accept", "application/json")
  .addHeader("authorization", "Bearer <access_token>")
  .build();

Response response = client.newCall(request).execute();
HttpResponse<String> response = Unirest.get("https://www.narro.co/api/v1/articles/56ca50f7c1dac403006bb309")
  .header("accept", "application/json")
  .header("authorization", "Bearer <access_token>")
  .asString();
var settings = {
  "async": true,
  "crossDomain": true,
  "url": "https://www.narro.co/api/v1/articles/56ca50f7c1dac403006bb309",
  "method": "GET",
  "headers": {
    "accept": "application/json",
    "authorization": "Bearer <access_token>"
  }
}

$.ajax(settings).done(function (response) {
  console.log(response);
});
var data = null;

var xhr = new XMLHttpRequest();
xhr.withCredentials = true;

xhr.addEventListener("readystatechange", function () {
  if (this.readyState === this.DONE) {
    console.log(this.responseText);
  }
});

xhr.open("GET", "https://www.narro.co/api/v1/articles/56ca50f7c1dac403006bb309");
xhr.setRequestHeader("accept", "application/json");
xhr.setRequestHeader("authorization", "Bearer <access_token>");

xhr.send(data);
var http = require("https");

var options = {
  "method": "GET",
  "hostname": "www.narro.co",
  "port": null,
  "path": "/api/v1/articles/56ca50f7c1dac403006bb309",
  "headers": {
    "accept": "application/json",
    "authorization": "Bearer <access_token>"
  }
};

var req = http.request(options, function (res) {
  var chunks = [];

  res.on("data", function (chunk) {
    chunks.push(chunk);
  });

  res.on("end", function () {
    var body = Buffer.concat(chunks);
    console.log(body.toString());
  });
});

req.end();
var request = require("request");

var options = { method: 'GET',
  url: 'https://www.narro.co/api/v1/articles/56ca50f7c1dac403006bb309',
  headers: 
   { authorization: 'Bearer <access_token>',
     accept: 'application/json' } };

request(options, function (error, response, body) {
  if (error) throw new Error(error);

  console.log(body);
});
var unirest = require("unirest");

var req = unirest("GET", "https://www.narro.co/api/v1/articles/56ca50f7c1dac403006bb309");

req.headers({
  "authorization": "Bearer <access_token>",
  "accept": "application/json"
});


req.end(function (res) {
  if (res.error) throw new Error(res.error);

  console.log(res.body);
});
#import <Foundation/Foundation.h>

NSDictionary *headers = @{ @"accept": @"application/json",
                           @"authorization": @"Bearer <access_token>" };

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"https://www.narro.co/api/v1/articles/56ca50f7c1dac403006bb309"]
                                                       cachePolicy:NSURLRequestUseProtocolCachePolicy
                                                   timeoutInterval:10.0];
[request setHTTPMethod:@"GET"];
[request setAllHTTPHeaderFields:headers];

NSURLSession *session = [NSURLSession sharedSession];
NSURLSessionDataTask *dataTask = [session dataTaskWithRequest:request
                                            completionHandler:^(NSData *data, NSURLResponse *response, NSError *error) {
                                                if (error) {
                                                    NSLog(@"%@", error);
                                                } else {
                                                    NSHTTPURLResponse *httpResponse = (NSHTTPURLResponse *) response;
                                                    NSLog(@"%@", httpResponse);
                                                }
                                            }];
[dataTask resume];
open Cohttp_lwt_unix
open Cohttp
open Lwt

let uri = Uri.of_string "https://www.narro.co/api/v1/articles/56ca50f7c1dac403006bb309" in
let headers = Header.add_list (Header.init ()) [
  ("accept", "application/json");
  ("authorization", "Bearer <access_token>");
] in

Client.call ~headers `GET uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
<?php

$curl = curl_init();

curl_setopt_array($curl, array(
  CURLOPT_URL => "https://www.narro.co/api/v1/articles/56ca50f7c1dac403006bb309",
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => "",
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 30,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => "GET",
  CURLOPT_HTTPHEADER => array(
    "accept: application/json",
    "authorization: Bearer <access_token>"
  ),
));

$response = curl_exec($curl);
$err = curl_error($curl);

curl_close($curl);

if ($err) {
  echo "cURL Error #:" . $err;
} else {
  echo $response;
}
<?php

$request = new HttpRequest();
$request->setUrl('https://www.narro.co/api/v1/articles/56ca50f7c1dac403006bb309');
$request->setMethod(HTTP_METH_GET);

$request->setHeaders(array(
  'authorization' => 'Bearer <access_token>',
  'accept' => 'application/json'
));

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
<?php

$client = new http\Client;
$request = new http\Client\Request;

$request->setRequestUrl('https://www.narro.co/api/v1/articles/56ca50f7c1dac403006bb309');
$request->setRequestMethod('GET');
$request->setHeaders(array(
  'authorization' => 'Bearer <access_token>',
  'accept' => 'application/json'
));

$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
import http.client

conn = http.client.HTTPSConnection("www.narro.co")

headers = {
    'accept': "application/json",
    'authorization': "Bearer <access_token>"
    }

conn.request("GET", "/api/v1/articles/56ca50f7c1dac403006bb309", headers=headers)

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "https://www.narro.co/api/v1/articles/56ca50f7c1dac403006bb309"

headers = {
    'accept': "application/json",
    'authorization': "Bearer <access_token>"
    }

response = requests.request("GET", url, headers=headers)

print(response.text)
require 'uri'
require 'net/http'

url = URI("https://www.narro.co/api/v1/articles/56ca50f7c1dac403006bb309")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
http.verify_mode = OpenSSL::SSL::VERIFY_NONE

request = Net::HTTP::Get.new(url)
request["accept"] = 'application/json'
request["authorization"] = 'Bearer <access_token>'

response = http.request(request)
puts response.read_body
curl --request GET \
  --url https://www.narro.co/api/v1/articles/56ca50f7c1dac403006bb309 \
  --header 'accept: application/json' \
  --header 'authorization: Bearer <access_token>'
http GET https://www.narro.co/api/v1/articles/56ca50f7c1dac403006bb309 \
  accept:application/json \
  authorization:'Bearer <access_token>'
wget --quiet \
  --method GET \
  --header 'accept: application/json' \
  --header 'authorization: Bearer <access_token>' \
  --output-document \
  - https://www.narro.co/api/v1/articles/56ca50f7c1dac403006bb309
import Foundation

let headers = [
  "accept": "application/json",
  "authorization": "Bearer <access_token>"
]

var request = NSMutableURLRequest(URL: NSURL(string: "https://www.narro.co/api/v1/articles/56ca50f7c1dac403006bb309")!,
                                        cachePolicy: .UseProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.HTTPMethod = "GET"
request.allHTTPHeaderFields = headers

let session = NSURLSession.sharedSession()
let dataTask = session.dataTaskWithRequest(request, completionHandler: { (data, response, error) -> Void in
  if (error != nil) {
    println(error)
  } else {
    let httpResponse = response as? NSHTTPURLResponse
    println(httpResponse)
  }
})

dataTask.resume()