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
    1.Screen Shot 2016-06-29 at 12.40.32 PM
  2. Check the read checkbox
    2.Screen Shot 2016-07-15 at 11.24.18 AM
  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.
    3.Screen Shot 2016-06-29 at 12.39.36 PM

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, refresh the "Try it now" page to get an updated token.