GithubHelp home page GithubHelp logo

23andme / api-example-flask Goto Github PK

View Code? Open in Web Editor NEW
71.0 80.0 28.0 94 KB

An example Python app on 23andMe's genome API using the flask microframework.

Home Page: https://api.23andme.com

Python 77.30% HTML 22.70%

api-example-flask's Introduction

api-example-flask

An example Python client application of 23andMe's API using the flask microframework.

Clone the repository, create a virtual environment in the directory, and start using it:

cd api-example-flask && virtualenv .
source bin/activate

Then, install the required packages (flask and requests):

pip install -r requirements.txt

You're good to go. Start it with:

python client.py

api-example-flask's People

Contributors

blopker avatar chapmanb avatar dependabot[bot] avatar mganesan23 avatar mikepolcari avatar purohit avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

api-example-flask's Issues

Got HTTP 500 error after grant

Hi,

When I run this example , all is OK but when I click grant button on 23andme webpage and then callback my URL http://localhost:5000/receive_code/?code=****\* , I got a HTTP 500 error like this:

127.0.0.1 - - [27/Feb/2014 14:15:26] "GET /receive_code/?code=b3f95931ceca942351e371d94b0ebfdd HTTP/1.1" 500 -

I trace the code and found maybe here(about line 60) is blocked :

response = requests.post(
"%s%s" % (BASE_API_URL, "token/"),
data = parameters,
verify=False
)

Cloud you please give some advice ? Thanks.

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.