Coder Social home page Coder Social logo

flask-wepay's Introduction

Flask-WePay

This extension provides a simple wrapper for WePay's Python API.

Installation

$ pip install flask-wepay

Usage

Provide your API key in your app's config file. The following may be set:

WEPAY_CONSUMER_KEY WEPAY_CONSUMER_SECRET WEPAY_IN_PRODUCTION WEPAY_ACCESS_TOKEN

Now in order to initialize the WePay object we pass the app object to it as follows:

from flask import Flask
from flaskext.wepay import WePay

app = Flask(__name__)
wepay = WePay(app)

The API of the WePay Python API is now exposed via this object. The following methods are available:

wepay.call(uri, params, token)

wepay.get_authorization_urls(redirect_uri, options={}, scope='')

wepay.get_token(redirect_uri, code)

flask-wepay's People

Contributors

maxcountryman avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

Forkers

dalexand1

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.