Getting Started with Examples

In this section there are some quick step-by-step examples to help you understand how to use the CCH API.
For all of these examples, we will be using the command line tool curl to make requests.
If you are on a Mac or other *NIX based system, all you need to do is copy and paste the examples and replace the token with your own.
Our Try it out! page can be used to get Access Tokens all you need to do is:

  1. Click the Off toggle under the my-account endpoint
    Screen_Shot_2016-06-29_at_12.40.32_PM.png
  2. Check the read checkbox
    Screen_Shot_2016-07-15_at_11.24.18_AM.png
  3. When prompted by the CCH, authorize our application
  4. Expand the my-account endpoint, and click the Try it out! button
  5. Copy the Access Token from the CURL request generated.
    Screen_Shot_2016-06-29_at_12.39.36_PM.png

***Note: Access Tokens expire an hour after they are issued.
If you attempt to use an expired token you will get the response "The access token provided is invalid".
For the purposes of our examples, just refresh the "Try it now" page to get an updated token.

Have more questions? Submit a request

Comments

Powered by Zendesk