All Projects → sue445 → pixela

sue445 / pixela

Licence: MIT License
Pixela API client for Ruby

Programming Languages

ruby
36898 projects - #4 most used programming language
shell
77523 projects

Projects that are alternatives of or similar to pixela

my api client
A framework of Web API Client. Provides features error handling, retrying, pagination and so on.
Stars: ✭ 19 (-17.39%)
Mutual labels:  gem, api-client
Puree
Metadata extraction from the Pure Research Information System.
Stars: ✭ 8 (-65.22%)
Mutual labels:  gem, api-client
backlog kit
Client library for the Nulab's Backlog API version 2 written in Ruby.
Stars: ✭ 28 (+21.74%)
Mutual labels:  gem, api-client
Instagram api gem
A Ruby wrapper for the Instagram API
Stars: ✭ 100 (+334.78%)
Mutual labels:  gem, api-client
als typograf
Ruby client for ArtLebedevStudio.RemoteTypograf Web Service.
Stars: ✭ 15 (-34.78%)
Mutual labels:  gem, api-client
j2ssh-maverick
The open source branch of our legacy API providing a robust, mission critical SSH component to the community.
Stars: ✭ 57 (+147.83%)
Mutual labels:  api-client
enasearch
A Python library for interacting with ENA's API
Stars: ✭ 17 (-26.09%)
Mutual labels:  api-client
Bittrex.Api.Client
A C# http client wrapper for the Bittrex cryptocurrency trading platform api
Stars: ✭ 14 (-39.13%)
Mutual labels:  api-client
arclight
A Rails engine supporting discovery of archival material
Stars: ✭ 25 (+8.7%)
Mutual labels:  gem
bitmovin-go
Golang-Client which enables you to seamlessly integrate the new Bitmovin API into your existing projects
Stars: ✭ 49 (+113.04%)
Mutual labels:  api-client
dude
A daily assistant in the hard work of a programmer
Stars: ✭ 19 (-17.39%)
Mutual labels:  gem
dataiku-api-client-python
Python client for the DSS public API
Stars: ✭ 32 (+39.13%)
Mutual labels:  api-client
pastebin-csharp
API client for Pastebin in C#
Stars: ✭ 25 (+8.7%)
Mutual labels:  api-client
jarling
A Java Library for the Starling Bank API
Stars: ✭ 14 (-39.13%)
Mutual labels:  api-client
dynamodb-api
DynamoDB API wrapper gem. like SQL and simply.
Stars: ✭ 15 (-34.78%)
Mutual labels:  gem
jekyll-commonmark
CommonMark generator for Jekyll
Stars: ✭ 28 (+21.74%)
Mutual labels:  gem
nomad-ruby
The official Ruby client for Nomad
Stars: ✭ 27 (+17.39%)
Mutual labels:  gem
postmates-api
PHP API Client for Posmates
Stars: ✭ 16 (-30.43%)
Mutual labels:  api-client
zipa
General purpose REST API client #ep14boat
Stars: ✭ 74 (+221.74%)
Mutual labels:  api-client
eoLinker
在线 API 研发管理测试工具,最后能用的开源修复版本(4.0.1本地测试插件兼容3.5与4.0版本)。
Stars: ✭ 62 (+169.57%)
Mutual labels:  api-client

Pixela

Pixela API client for Ruby

Gem Version CI activity of pixela-gem Build Status Maintainability Coverage Status

CI activity of pixela-gem

Installation

Add this line to your application's Gemfile:

gem 'pixela'

And then execute:

$ bundle

Or install it yourself as:

$ gem install pixela

Usage

require "pixela"

client = Pixela::Client.new(username: "YOUR_NAME", token: "YOUR_TOKEN")

# register
client.create_user(agree_terms_of_service: true, not_minor: true)

# create graph
client.create_graph(graph_id: "test-graph", name: "graph-name", unit: "commit", type: "int", color: "shibafu")

# register value
require "date" 
client.create_pixel(graph_id: "test-graph", date: Date.today, quantity: 5) 

or

# create graph
client.graph("test-graph").create(name: "graph-name", unit: "commit", type: "int", color: "shibafu")

# register value
client.graph("test-graph").pixel(Date.today).create(quantity: 5)

All methods are followings

https://www.rubydoc.info/gems/pixela/Pixela/Client

Configuration

Pixela.config.debug_logger = Logger.new(STDOUT)
  • debug_logger: Enable debug logging if Logger is set

Development

After checking out the repo, run bin/setup to install dependencies. Then, run rake spec to run the tests. You can also run bin/console for an interactive prompt that will allow you to experiment.

To install this gem onto your local machine, run bundle exec rake install. To release a new version, update the version number in version.rb, and then run bundle exec rake release, which will create a git tag for the version, push git commits and tags, and push the .gem file to rubygems.org.

Contributing

Bug reports and pull requests are welcome on GitHub at https://github.com/sue445/pixela.

License

The gem is available as open source under the terms of the MIT License.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].