NAME
WebService::Qiita - Perl wrapper for the Qiita API
SYNOPSIS
use WebService::Qiita;
# Class method style
my $user_items = WebService::Qiita->user_items('y_uuki_');
my $tag_items = WebService::Qiita->tag_items('perl');
my $item_uuid = '1234567890abcdefg';
my $markdown_content = WebService::Qiita->item($item_uuid);
# Instance method style
my $client = WebService::Qiita->new(
url_name => 'y_uuki_',
password => 'mysecret',
);
# or
$client = WebService::Qiita->new(
token => 'myauthtoken',
);
my $myinfo = $client->user_items;
$myinfo->{uuid}; #=> "1a43e55e7209c8f3c565"
$myinfo->{user}->{url_name}; #=> "y_uuki_"
DESCRIPTION
WebService::Qiita is a wrapper for Qiita API.
METHODS
- my $client = WebService::Qiita->new(%args)
-
Creates a new instance of WebService::Qiita.
- my $user_items = $client->user_items([$url_name], [\%params])
-
Retrieves an ARRAY reference of user items
-
Retrieves an ARRAY reference of user following tags
- my $following_users = $client->user_following_users($url_name, [\%params])
-
Retrieves an ARRAY reference of user following users
- my $user_stocks = $client->user_stocks([$url_name], [\%params])
-
Retrieves an ARRAY reference of user stock items
- my $user = $client->user([$url_name])
-
Retrieves an HASH reference of user info
- my $tag_items = $client->tag_items($url_name, [\%params])
-
Retrieves an ARRAY reference of tag items
-
Retrieves an ARRAY reference of tags
- $client->post_item(\%params)
-
Creates an item
- $client->update_item($uuid, \%params)
-
Edits item by uuid
- $client->delete_item($uuid)
-
Deletes an item by uuid
- my $item = $client->item($uuid)
-
Retrieves an item by uuid
- my $items = $client->search_items($query, \%params)
-
Searchs an item by query
- $client->stock_item($uuid)
-
Creates stock of an item by uuid
- $client->unstock_item($uuid)
-
Deletes stock of an item by uuid
AUTHOR
Yuuki Tsubouchi <yuuki@cpan.org>
SEE ALSO
"/qiita.com/docs"" in <a href="http:Qiita API Documet</a>> "/github.com/yaotti/qiita-rb"" in <a href="https:Qiita Ruby wrapper</a>>
LICENSE
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.