Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 12 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -46,21 +46,28 @@ $client = new Json([
// optional
'basicAuth' => ['username', 'password'],
]);


// basic usage:
$resources = $client->get('/resources', [
'limit' => 100,
]);

$resources = $client->put('/resources/1', [
'name' => 'foo',
]);

$resources = $client->post('/resources', [
'name' => 'foo',
]);

// with optionally supplied custom options per-request:
$resources = $client->post(
'/resources',
['name' => 'foo'],
['headers' => ['X-Request-Token' => 'e4d909c290d0fb1ca068ffaddf22cbd0']]
);
```


## Issues/Features proposals

[Here](https://github.com/mjacobus/php-json-api-client/issues) is the issue tracker.
Expand Down Expand Up @@ -89,7 +96,7 @@ Only tested code will be accepted. Please follow fix the style guide.
./vendor/bin/bro-code fix tests
```

## Lincense
## License

This software is distributed under the [MIT](MIT-LICENSE) license.

Expand Down