https://github.com/kokororin/pixiv-api-php
Pixiv API for PHP
https://github.com/kokororin/pixiv-api-php
pixiv pixiv-api
Last synced: about 1 year ago
JSON representation
Pixiv API for PHP
- Host: GitHub
- URL: https://github.com/kokororin/pixiv-api-php
- Owner: kokororin
- License: mit
- Created: 2016-02-12T11:59:55.000Z (over 10 years ago)
- Default Branch: master
- Last Pushed: 2021-12-01T15:48:23.000Z (over 4 years ago)
- Last Synced: 2024-10-12T07:16:13.345Z (over 1 year ago)
- Topics: pixiv, pixiv-api
- Language: PHP
- Homepage:
- Size: 35.2 KB
- Stars: 79
- Watchers: 5
- Forks: 14
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# pixiv-api-php
[](https://travis-ci.org/kokororin/pixiv-api-php)
[](https://packagist.org/packages/kokororin/pixiv-api-php)
_Pixiv API for PHP (with Auth supported)_
### Installation
~~~bash
composer require kokororin/pixiv-api-php:dev-master
~~~
### Example:
~~~php
require './vendor/autoload.php';
$api = new PixivAppAPI;
# running some methods
$api->method();
~~~
## Tests
To execute the test suite, you'll need phpunit.
```bash
$ PIXIV_USERNAME=XXX PIXIV_PASSWORD=XXX composer test
```
## API
### PixivAppAPI
**ALL METHODS need authentication.**
See [PixivAppAPI.php](https://github.com/kokororin/pixiv-api-php/blob/master/PixivAppAPI.php) or [PixivAppAPITest.php](https://github.com/kokororin/pixiv-api-php/blob/master/tests/PixivAppAPITest.php) for detail usage.
### PixivAPI (**deprecated**)
**Some methods need authentication.**
See [PixivAPI.php](https://github.com/kokororin/pixiv-api-php/blob/master/PixivAPI.php) or [PixivAPITest.php](https://github.com/kokororin/pixiv-api-php/blob/master/tests/PixivAPITest.php) for detail usage.