Fork API
The Fork API allows anyone to build their own programs using the data in Fork.
Basics
The Fork API is a REST-style api.
[..]
Possible methods
Core
core.getAPIKey
Get the API-key for a user.
Parameters
- email string
- The emailaddress for the user.
- password string
- The password for the user.
Return
An array with the public- and privatekey.
core.getInfo
Get info about the site.
Return
An array with the information about the site/language.
core.apple.addDevice
Add a device to a user.
Parameters
- token string
- The token of the device.
core.apple.removeDevice
Remove a device from a user.
Parameters
- token string
- The token of the device.
Blog
Get the comments.
Parameters
- status string (optional)
- The type of comments to get. Possible values are: published, moderation, spam.
- limit int (optional)
- The maximum number of items to retrieve.
- offset int (optional)
- The offset.
Return
An array with the comments
Get a single comment.
Parameters
- id int
- The id of the comment.
Return
An array with the comment
Update a comment
Parameters
- id int
- The id of the comment.
- status string (optional)
- The new status for the comment. Possible values are: published, moderation, spam.
- text string (optional)
- The new text for the comment.
- authorName string (optional)
- The new author for the comment.
- authorEmail string (optional)
- The new email for the comment.
- authorWebsite string (optional)
- The new website for the comment.
Update the status for multiple comments at once.
Parameters
- id array
- The id/ids of the comment(s) to update.
- status string
- The new status for the comment. Possible values are: published, moderation, spam.