Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

  1. -u or -user The API user
  2. -k or -key The API key
  3. -m or -method The method for the request (GET, POST, PUT, DELETE)
  4. -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
titleRemember to quote parameters

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"

...