Skip to content

Latest commit

 

History

History
10 lines (7 loc) · 483 Bytes

08_Making_API_Calls.md

File metadata and controls

10 lines (7 loc) · 483 Bytes

Making API Calls

Once you have your access token, making some API calls from the command line is also easy. For authenticated requests, which require an Authorization header:

curl -H 'Authorization: Bearer <your access token>' \
  'https://api-news.layervault.com/api/v1/me'

For unauthenticated requests, the Designer News API is setup with Cross-Origin Resource Sharing (CORS) rules that allow you to access it from any domain without using something like JSONP.