Teambition Python API
Project description
teambition-api
Teambition Python API
安装与升级
推荐使用 pip 进行安装:
pip install teambition
升级版本:
pip install -U teambition
基本用法
# -*- coding: utf-8 -*-
from __future__ import absolute_import, unicode_literals
from teambition import Teambition
client_key = 'Your client key'
client_secret = 'You client secret'
redirect_uri = 'http://localhost'
tb = Teambition(client_key, client_secret)
# 获取授权地址
url = tb.oauth.get_authorize_url(redirect_uri)
# 通过 code 获取 access_token
tb.oauth.fetch_access_token('Your code')
# 其它操作
License
The MIT License (MIT)
Copyright (c) 2015 messense
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the “Software”), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file teambition-0.2.0.tar.gz
.
File metadata
- Download URL: teambition-0.2.0.tar.gz
- Upload date:
- Size: 21.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5015ef4b4cf2bbbfaecc3467c1a2339f8566cf3205963e28b0b362444bd22be3 |
|
MD5 | cf07d4f42ee710ee99898edc33efb6c7 |
|
BLAKE2b-256 | efde89cdaf696061bef5e01c5bcb400f5197ff87d2058c48ffdde8c70c12500b |
File details
Details for the file teambition-0.2.0-py2.py3-none-any.whl
.
File metadata
- Download URL: teambition-0.2.0-py2.py3-none-any.whl
- Upload date:
- Size: 38.6 kB
- Tags: Python 2, Python 3
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 81c43d73d187b88bb4f077c0ceeb26240eb611925a0b6800f39b1ee9ea0f194c |
|
MD5 | 194c986e5e81a9157c0fe526411fefd7 |
|
BLAKE2b-256 | f588d798e94dcf121e7abbcbc220f156fb92b8eaa4205d50f81a290665ad2bb7 |