...
- -u or -user The API user
- -k or -key The API key
- -m or -method The method for the request (GET, POST, PUT, DELETE)
- -p or -params A serialized URL encoded array of parameters as you would find in a URL string (e.g. first_name=John&last_name=Doe&company=Acme Co.)
Note | ||
---|---|---|
| ||
If any of your command line parameters contain special characters or spaces you must wrap quote marks (") around the value. |
Below is an example API requestsrequest.
No Format |
---|
php index.php /api/users/get.json -u USER -k KEY -m GET -p "user_id=1" |
...