Cho ae nào cần link https anotepad.com note read i7mhjm
Our API is based on the REST spec and makes use of GET/POST/PUT/DELETE. Each method is documented below, along with sample CURL calls. For help getting off the ground, download the PHP sample file Available methods:NotesGET notesURL: https://anotepad.com/api/notes Method: GET Requires Authentication: TRUE Parameters: None Usage example: curl user:pass https://anotepad.com/api/notes Response:
GET noteURL: https://anotepad.com/api/notes/id Method: GET Requires Authentication: TRUE unless note is public Parameters:
Usage example: curl https://anotepad.com/api/notes/487 Response:
POST (add) noteURL: https://anotepad.com/api/notes Method: POST Requires Authentication: TRUE Parameters:
Usage example: curl user:pass -d "title=New Note&content=Content goes here." https://anotepad.com/api/notes Response:
PUT (update) noteURL: https://anotepad.com/api/notes/id Method: PUT Requires Authentication: TRUE Parameters:
Usage example: curl user:pass -x PUT -d "id=488&title=Updated title&content=Content goes here." https://anotepad.com/api/notes Response:
DELETE noteURL: https://anotepad.com/api/notes/id Method: DELETE Requires Authentication: TRUE Parameters:
Usage example: curl user:pass -x DELETE https://anotepad.com/api/notes Response:
UsersGET userURL: https://anotepad.com/api/users/id Method: GET Requires Authentication: TRUE Parameters:
Usage example: curl user:pass https://anotepad.com/api/users Response:
|