2017 © Pedro Peláez
 

library php-qiita

Qiita API library for PHP

image

suin/php-qiita

Qiita API library for PHP

  • Wednesday, October 10, 2012
  • by suin
  • Repository
  • 3 Watchers
  • 6 Stars
  • 21 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 2 Versions
  • 0 % Grown

The README.md

PHP Qiita (v.1.0.0)

プログラマの技術情報共有サービスQiitaQiita APIを扱うためのPHP向けライブラリ, (*1)

The build status of the current master branch is tracked by Travis CI: Build Status, (*2)

要件

  • PHP 5.3 以上
  • curl拡張

インストール

Composer経由でインストールします。, (*3)

まず composer.json ファイルに下記を記述します:, (*4)

{
    "require": {
        "suin/php-qiita": ">=1.0.0"
    }
}

composerを走らせてインストールします:, (*5)

$ composer install

最後に、あなたのプロダクトで vendor/autoload.php をインクルードします:, (*6)

require_once 'vendor/autoload.php';

使い方

$qiita = new Qiita(array(
    'username' => 'suin',
    'password' => 'p@ssW0rd',
));

try
{
    // ユーザ情報の取得
    $user = $qiita->api('/users/suin');

    // 投稿の実行
    $createdItem = $qiita->api('/items', 'POST', array(
        'title' => 'Qiita APIからのテスト投稿',
        'tags' => array(
            array('name' => 'Qiita'),
        ),
        'body' => 'テスト投稿',
        'private' => false,
    ));
}
catch ( Exception $e )
{
    error_log($e);
}

License

php-qiita is licensed under the MIT License - see the LICENSE file for details, (*7)

The Versions

10/10 2012

dev-master

9999999-dev https://github.com/suin/php-qiita

Qiita API library for PHP

  Sources   Download

MIT

The Requires

  • php >=5.3.0
  • ext-curl *
  • ext-json *

 

api qiita

10/10 2012

1.0.0

1.0.0.0 https://github.com/suin/php-qiita

Qiita API library for PHP

  Sources   Download

MIT

The Requires

  • php >=5.3.0
  • ext-curl *
  • ext-json *

 

api qiita