cURL with Cloud CMS

Guide and References for connectivity to Cloud CMS





Get Started with our API

It's easy to connect to the Cloud CMS API. First, you need to sign up for a Cloud CMS trial. Then:

Step 2

Log in and Download the SDK

The ZIP file has examples with your API keys already plugged in and ready to go.

Step 2

Get Jiggy with It

Unzip and run the read-product.sh bash script to read a Product from the Sample Site's product catalog.

sh read-product.sh

Connected to yoursubdomain.cloudcms.net port 80
GET /repositories/7fcd76f8a7475ab4efcf/branches/b50d091a043ad009bf57/nodes/4d5df322dacd175fd7f2 HTTP/1.1

{
    "_type": "catalog:product",
    "title": "Tango Mango",
    "sku": "Tango Mango SKU",
    "headline": "Any fruit that rhymes with tango can't help but be perfect to be in, on and around a cupcake.",
    "summary": "Cupcakes are not just for dessert anymore. Cupcakes are great for any occasion. And with Tango Mango cupcakes you can take your event to the next level of delicious",
    "body": "This inventive cupcake has two pureed mangoes in the batter, along with a helping of chopped macadamia nuts. If you aren't sold on that alone, then the rum cream cheese frosting should convince you! Oh yes, that's perfection.",
    "price": 4.29,
    "categories": [
        "holidays"
    ],
    "_qname": "o:7d096424ff7b3f21080e",
    "_features": {
        "f:audit": {},
        "f:titled": {},
        "f:filename": {
            "filename":"Tango_Mango"
        },
        "f:geolocation": {},
        "f:indexable": {}
    },
    "_statistics":{
        "a:has_role": 3,
        "a:has_role_INCOMING": 3,
        "a:child": 1,
        "a:child_INCOMING": 1,
        "ratingTotalCount": 1,
        "ratingTotalValue": 5,
        "ratingAverageValue": 5.0,
        "catalog:product-has-review": 1,
        "catalog:product-has-review_OUTGOING": 1
    },
    "_doc": "4d5df322dacd175fd7f2"
}
            

API Keys

Every mobile app or web site that you build will need to have a set of API Keys that it will use to connect to your Cloud CMS platform on behalf of your code. These API keys consist of client and user key/secret pairs.

  1. Log in to your Cloud CMS tenant at https://<yourdomain>.cloudcms.net
  2. From Manage Platform -> API Keys

You will now see your API Keys for all of your platform's Application instances.
You can create as many Application instances as you'd like and each will have their own set of API Keys.
Download the gitana.json file, as you will need this to provide authentication for the example applications.

For more information, visit Configuring your API Keys.