URI | /v1/general/username/{username} |
URI Parameters |
|
Methods | GET |
GET /v1/general/username/{username}
Gets the username's resource location. Use username 0 to get the location of currently authorized end-user.
Scope | n/a |
Request Body Parameters |
|
Response Attributes |
|
Example Self
Request:
GET /v1/username/0 HTTP/1.1
Host: api.intronis.com
Authorization: OAuth vF9dft4qmT
Response:
HTTP/1.1 303 See Other
Location: https://api.intronis.com/v1/partner/barracuda
Example Account
Request:
GET /v1/username/barracuda_a HTTP/1.1
Host: api.intronis.com
Authorization: OAuth vF9dft4qmT
Response:
HTTP/1.1 303 See Other
Location: https://api.intronis.com/v1/accounts/barracuda_a
Example Partner
Request:
GET /v1/username/barracuda_p HTTP/1.1
Host: api.intronis.com
Authorization: OAuth vF9dft4qmT
Response:
HTTP/1.1 303 See Other
Location: https://api.intronis.com/v1/partner/barracuda_p
Example User
Request:
GET /v1/username/tech_user HTTP/1.1
Host: api.intronis.com
Authorization: OAuth vF9dft4qm
Response:
HTTP/1.1 303 See Other
Location: https://api.intronis.com/v1/partner/barracuda/user/tech_user
Example Not Found
Request:
GET /v1/username/a HTTP/1.1
Host: api.intronis.com
Authorization: OAuth vF9dft4qmT
Response:
HTTP/1.1 404 Not Found