kuredev / qiita-php-wrapper
PHP Wrapper for Qiita APIv2
v1.0.3
2017-11-10 12:11 UTC
Requires
- php: >=7.0.0
- palanik/wrapi: *
This package is not auto-updated.
Last update: 2025-03-30 06:29:57 UTC
README
PHP Wrapper for Qiita APIv2
Requirement
palanik/wrapi: "*",
php: ">=7.0.0"
Install
composer require kuredev/qiita-php-wrapper
Usage
<?php
require 'vendor/autoload.php';
$accessToken = "xxxxxxxxxxxxxx";
try{
$qiita = new \Kuredev\Qiita($accessToken);
//sample code
var_dump($qiita->get->users());
$arr = array();
var_dump($qiita->put->userFollowing("kure", json_encode($arr)));
var_dump($qiita->get->tagsItem("api"));
$comment = array("body" => "testtest2");
var_dump($qiita->post->comment("xxxxx", json_encode($comment)));
}catch(Exception $e){
var_dump($e->getMessage());
}
Reference
See src/api.json
License
MIT