Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- This REST API produces an interface to manage user access. This API uses JSON format.
- The user can be identified by his email. Each user account has an expiration date. If the
- expiration date is null user have permanent access. All requests require an access token.
- Create or Update funded user:
- PUT https://news.site.com/v1/co/users
- Authorization : Bearer xxxxxxxxxxxxxxxxxxxx
- Content-Type: application/json
- Body:
- {
- email: " test@example.com ",
- expired: null,
- funded: true
- }
- Response:
- 200 {message: "OK"}
- 400 {message: "Bad arguments"}
- 401 {message: "Bad authorization"}
- 500 {message: "Server error"}
- Example:
- curl -d "{\"email\": \" test@example.com \", \"expired\": null, \"funded\": true}" -H "Content-Type:
- application/json" -H "Authorization: Bearer xxxxxxxxxxxxxxxxxxxx" -X PUT https://news.optimusfutures.com/v1/optimus-futures/users?debug=true
- Note:
- You can use debug=true (see example) get error description.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement