-
Notifications
You must be signed in to change notification settings - Fork 9
Data api blogs get
Hatsuhito UENO edited this page Feb 13, 2015
·
7 revisions
Retrieve a single blog by its ID.
This method accepts GET only.
GET https://your-host/your-mt-api.cgi/v1/sites/{blog_id}
| Parameter | Type | Description |
|---|---|---|
| blog_id | unsigned integer | The blog ID. |
| Parameter | Type | Description |
|---|---|---|
| fields | string | This is an optional parameter. The field list to retrieve as part of the Entries resource. If this parameter is not specified, All fields will be returned. |
Do not supply a request body.
If successful, this method will return an Blogs resource as the response body.
| Code | Description |
|---|---|
| 200 | no error |
| 404 | Site not found |
GET /mt-api.cgi/sites/1
Host: www.example.com
HTTP/1.0 200 OK
Content-Type: application/json
Content-length: ...