Skip to content

Instantly share code, notes, and snippets.

@cyx
Created December 3, 2012 07:56
Show Gist options
  • Save cyx/4193500 to your computer and use it in GitHub Desktop.
Save cyx/4193500 to your computer and use it in GitHub Desktop.
CLI | openredis API docs

CLI API

If you need to access your instance publicly from your local computer, a coffee shop, or your office, you need to use our CLI API.

Note: This is the beta API and will probably change when we launch this publicly.

Getting your credentials

If you signed up directly at openredis.com, your credentials will simply be your email, and your password.

Getting a list of your plans

Sample Input:

$ curl -u email:password -X POST \
       -d @- \
       https://openredis.com/api/v1/plans

Sample Output:

[
    {
        "url": "redis://node-xxx.openredis.com:10101",
        "id": "100"
    }
]

Accessing the API

The following example assume the ID 100 based on the sample output above.

Input:

$ echo 'SET foo bar' | curl \
    -u email:password \
    -XPOST \
    -d @- \
    https://openredis.com/api/v1/plans/100/cli

Sample Output:

OK

If you have any suggestions or clarifications, please don't hesitate to send us an email at [email protected].

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment