GithubHelp home page GithubHelp logo

teambition2's Introduction

Teambition2

非官方 Teambition API SDK Ruby 版本。除了通用的请求以外,还简单封装了部分任务接口。

安装

Add this line to your application's Gemfile:

gem 'teambition2'

And then execute:

$ bundle

Or install it yourself as:

$ gem install teambition2

用法

require 'teambition2'

# 初始化
client = Teambition2::Client.new "client_key", "client_secret", "callback_uri"

# 获取认证链接
client.authorize_url

# 获取令牌
client.access_token "code"

# 检查令牌是否有效
client.valid_token?

# 获取项目列表
client.projects

# 获取项目的任务分组列表
client.task_group "project_id"

# 在指定任务分组创建一个任务
client.create_task "group_id", "subject"

Contributing

Bug reports and pull requests are welcome on GitHub at https://github.com/[USERNAME]/teambition2. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the Contributor Covenant code of conduct.

License

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

Code of Conduct

Everyone interacting in the Teambition2 project’s codebases, issue trackers, chat rooms and mailing lists is expected to follow the code of conduct.

teambition2's People

Contributors

dependabot-preview[bot] avatar icyleaf avatar

Watchers

 avatar

Forkers

bailu0508

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.