-
Notifications
You must be signed in to change notification settings - Fork 0
RebelMouse Private API Authors API
Jorge Puente-Sarrín edited this page Jan 29, 2019
·
1 revision
The author API supports creating users that could be used to create drafts.
Creates an author and sets its role as guest editor.
POST /api/1.1/authors
| Name | Type | Description |
|---|---|---|
first_name |
String | First name - Required |
last_name |
String | Last name - Required |
email |
String | User email - Required |
password |
String | User password - Required |
about_html |
String | User biography - Optional |
image_id |
Integer | ID of the uploaded image - Optional |
Note
-
image_idcan be found asidin Image API response when uploading or editing images.
{
"id": <id>,
"name": "paulberry",
"displayname": "Paul Berry",
"about_html": "This is me",
"bio": "",
"photo": "https://<domain>/res/avatars/default",
"fb_id": null,
"profile_url": "https://<domain>/community/paulberry/"
}Fetches authors information ordered by ID in descending order.
POST /api/1.3/authors/search
| Name | Type | Description |
|---|---|---|
offset |
String | Offset -- Optional |
limit |
String | Limit -- Optional, defaults to 10, maximum value is 30 |
[
{
"id": <id>,
"name": "paulberry",
"displayname": "Paul Berry",
"about_html": "This is me",
"bio": "",
"photo": "https://<domain>/res/avatars/default",
"fb_id": null,
"profile_url": "https://<domain>/community/paulberry/",
"specific_data": []
}
]Fetches authors information by email addresses.
POST /api/1.3/authors/email
| Name | Type | Description |
|---|---|---|
emails |
String | Required -- Multiple emails can be received with a comma-separated string |