-
Notifications
You must be signed in to change notification settings - Fork 372
1. Accelerider Account Methods
Dingping Zhang edited this page Feb 4, 2018
·
1 revision
-
Base Url:
http://api.usmusic.cn/v2
| Method | HTTP Verb | API | Description |
|---|---|---|---|
| Get public key | GET |
/publickey |
Get a RSA public key that is used to encrypt info. |
| Register | POST |
/users |
Registers a new Accelerider account. |
| Login | POST |
/sessions |
Login your Accelerider account. |
| Sign out | DELETE |
/sessions/:id |
Sign up your Accelerider account. |
| Update | PATCH |
/users/:id |
Update the information of your Accelerider account, i.e.: username, password or headimage etc. |
| Get metadata | GET |
/users/:id |
Get the metadata of Accelerider account. |
| List modules | GET |
/modules/children |
Get the metadata of Accelerider account. |
| Get modules | GET |
/modules/{module name}/content |
Get the metadata of Accelerider account. |
| Parameters | Type | Description |
|---|---|---|
email |
string |
A email address that can accept mail normally. |
username |
string |
User name |
password |
string |
Password |
| Parameters | Type | Description |
|---|---|---|
email |
string |
A email address you used to register. |
password |
string |
Password |
| Parameters | Type | Description |
|---|---|---|
userid |
long |
User ID |
email |
string |
A email address you used to register. |
username |
string |
User name |
avatar |
string |
A url that is used to locate your avatar. |