Skip to content

tamanugi/qiitex

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

79 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Qiitex

hex.pm version

Simple Elixir wrapper for the Qiita v2 API.

Generate from Qiita API v2 JSON Schema

Installation

If available in Hex, the package can be installed by adding qiitex to your list of dependencies in mix.exs:

def deps do
  [{:qiitex, "~> 1.0.0"}]
end

Usage

Get access token here

iex> client = Qiitex.Client.new %{access_token: "enteryouraccesstoken"}
iex> Qiitex.Api.Tag.list_tags client
{:ok,
 [
   %{
     "followers_count" => 0,
     "icon_url" => nil,
     "id" => "eclair-labo",
     "items_count" => 0
   },
   %{
     "followers_count" => 0,
     "icon_url" => nil,
     "id" => "fake-hwclock",
     "items_count" => 1
   },
   ...
iex> Qiitex.Items.create client, %{title: "title", body: "body", tags: [%{name: "qiita"}]}

Documentation can be generated with ExDoc and published on HexDocs. Once published, the docs can be found at https://hexdocs.pm/qiitex.

About

Simple Elixir wrapper for the Qiita v2 API.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages