Permalink
Switch branches/tags
Nothing to show
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
55 lines (46 sloc) 991 Bytes

Register

Create a CloudApp account.

Request

  • HTTP Method: POST

  • URL: http://my.cl.ly/register

  • Body:

    {
      "user": {
        "email":      "arthur@dent.com",
        "password":   "towel",
        "accept_tos": true
      }
    }

Response

  • Status: 201 Created

  • Body:

    {
      "id":               1,
      "email":            "arthur@dent.com",
      "domain":           null,
      "domain_home_page": null,
      "private_items":    true,
      "subscribed":       false,
      "alpha":            false,
      "created_at":       "2010-12-10T17:07:01Z",
      "updated_at":       "2010-12-10T17:07:01Z",
      "activated_at":     "2010-12-10T17:07:01Z"
    }

Example

curl -H "Accept: application/json" \
     -H "Content-Type: application/json" \
     -d \
        '{
          "user": {
            "email":      "arthur@dent.com",
            "password":   "towel",
            "accept_tos": true
          }
        }' \
     http://my.cl.ly/register