Skip to content
p44 edited this page Nov 14, 2014 · 4 revisions

GET /consumer

This service returns the Consumer associated with the bearer token. It requires role User.

The service does not return the key or secret stored in the database, they are masked with a "hidden" value.

GET /consumer HTTP/1.1
Authorization: bearer my_token
Accept: */*

200 Ok

HTTP/1.1 200 OK
Content-Type: text/plain; charset=utf-8
Content-Length: 125
{
"id" : 218,
"appId" : 88,
"name" : "Pioneer Co",
"key" : "hidden",
"secret" : "hidden",
"roles" : [ "user" ]
}

Clone this wiki locally