Skip to content

User

lasconic edited this page Apr 15, 2013 · 6 revisions
Clone this wiki locally
Resource Method
/user/{id} GET
/user/{id}/score GET

For each resource /user/{user_id}* there is a resource /me*.
Using these resources gives the logged in user as the given user.

GET /user/{user_id}

GET /me

Type: User

The given user.

$ curl 'http://api.musescore.com/services/rest/me.xml?oauth_consumer_key=your_consumer_key'

< HTTP/1.1 200 OK
<?xml version="1.0" encoding="UTF-8"?>
<user>
  <id>5</id>
  <name>toto</name>
  ...
</user>

GET /user/{user_id}/score

GET /me/score (not yet implemented)

Type: Collection of scores

Scores of the given user. This resource is searchable just like /score.

$ curl 'http://api.musescore.com/user/5/score.xml?oauth_consumer_key=your_consumer_key'

< HTTP/1.1 200 OK

<?xml version="1.0" encoding="utf-8"?>
<scores>
  <score>
    <score_id>583</score_id>
    <secret>624a6e663e</secret>
    <uri>http://api.musescore.com/services/rest/score/583</uri>
    <uid>5</uid>
    <title>Wilder Reiter</title>
    <description>...</description>
    <pages>1</pages>
    <measures>26</measures>
    <length>29</length>
    <dimensions>210x297</dimensions>
  ...............
  </score>
  <score>
................
  </score>
</scores>
Something went wrong with that request. Please try again.