Skip to content
Open
Show file tree
Hide file tree
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
6 changes: 6 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1 +1,7 @@
test.php
composer.phar
/vendor/

# Commit your application's lock file https://getcomposer.org/doc/01-basic-usage.md#commit-your-composer-lock-file-to-version-control
# You may choose to ignore a library lock file http://getcomposer.org/doc/02-libraries.md#lock-file
# composer.lock
7 changes: 7 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,13 @@ OnenceWS Http client for official 1nce rest api https://api.1nce.com
composer require pipinstallpip/onencews:dev-master
```

Make sure that you have the PHP Module for `APCu` enabled and loaded. This is used to store the oauth2-token for subsequent requests, so we do not exhaust the ratelimit of the Endpoint.
You can check this by running:
```sh
php -m | grep apcu
```
in your terminal.

## Usage

```php
Expand Down
46 changes: 25 additions & 21 deletions composer.json
Original file line number Diff line number Diff line change
@@ -1,23 +1,27 @@
{
"name": "pipinstallpip/onencews",
"type": "library",
"description": "Http client for official 1nce rest api https://api.1nce.com",
"keywords": ["1nce","once","onence","client","http"],
"license": "MIT",
"homepage": "https://github.com/pipinstallpip/1nce",
"authors": [
{
"name": "pipinstallpip",
"role": "Developer"
}
],
"require": {
"guzzlehttp/guzzle": "~6.0"
},
"autoload": {
"psr-4": {
"pipinstallpip\\onencews\\": "src/"
}
},
"minimum-stability": "dev"
"name": "esyoil-gmbh/onencews",
"type": "library",
"description": "Http client for official 1nce rest api https://api.1nce.com",
"keywords": [
"1nce",
"once",
"onence",
"client",
"http"
],
"license": "MIT",
"homepage": "https://github.com/esyoil-gmbh/1nce",
"authors": [{
"name": "esyoil-gmbh",
"role": "Developer"
}],
"require": {
"guzzlehttp/guzzle": "~6.0"
},
"autoload": {
"psr-4": {
"pipinstallpip\\onencews\\": "src/"
}
},
"minimum-stability": "dev"
}
Loading