End-users wishing to create an account can do so via the front page here. Reading and updating of accounts can be performed by all MetaCDN users after account creation.
Get user
HTTP Operation: GETURL: GET https://secure.metacdn.com/api/users/{username}
Auth: HTTP digest authentication (User)
"Accept" header: application/json
Expected HTTP response: HTTP/1.1 200 OK
Expected Format (mandatory, optional):
plain
Example Call #1:
12GET /api/users/{username} HTTP/1.1
Content-Type: application/json
plain
Expected Response #1:
12GET /api/users/mcdnuser HTTP/1.1
Content-Type: application/json
plain
123456789101112HTTP/1.1 200 Ok
Content-Type: application/json {
"username"
:
"mcdnuser"
,
"planType"
:
"PAYG"
,
"qosPreset"
:
"NONE"
,
"mediaCount"
: 0,
"secretKey"
:
"128c5fb9-77e7-4594-b2fd-453fb512f343"
,
"email"
:
"mcdnuser@metacdn.com"
,
"contentCount"
: 0,
"lastname"
:
"User"
,
"firstname"
:
"Test"
}
Update user
HTTP Operation: PUTURL: PUT https://secure.metacdn.com/api/users/{username}
Auth: HTTP digest authentication (User)
"Content-Type" header: application/json
Expected HTTP response: HTTP/1.1 202 Accepted
Expected Format (mandatory, optional):
plain
Example Call #1:
12345PUT /api/users/{username} HTTP/1.1
Content-Type: application/json {
"firstname"
:
""
,
"lastname"
:
""
}
plain
Expected Response #1:
12345PUT /api/users/mcdnuser HTTP/1.1
Content-Type: application/json {
"firstname"
:
"Joe"
,
"lastname"
:
"Bloggs"
}
plain
12345678910HTTP/1.1 202 Accepted
Content-Type: text/plain; charset=UTF-8
Content-Location: https:
//secure.metacdn.com/api/users/mcdnuser
Date: Tue, 05 Jan 2010 02:33:46 GMT
Vary: Accept-Charset, Accept-Encoding, Accept-Language, Accept
Accept-Ranges: bytes
Server: Restlet-Framework/2.0m5
Content-Length: 12
Connection: close
User updated