We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
i use this file in a flask app.
code like below:
@app.route("/oauth/fitbit") def test(): from fitbit import FitBit c=FitBit() if "oauth_token" not in request.args: url,oauth_token = c.GetRequestToken() return redirect(url) auth_token = request.args.get("oauth_token") pin = request.args.get("oauth_verifier") access_token = c.GetAccessToken(pin, Row(key=auth_token,secret=pin,callback=None)) return "%s"%c.ApiCall(access_token,apiCall="/1/user/~/profile.json")
when get access_token it works ok,but when i access the api get_user_info,it return a xml header
<?xml version="1.0" encoding="UTF-8" ?>
not json object, what happening?
The text was updated successfully, but these errors were encountered:
No branches or pull requests
i use this file in a flask app.
code like below:
when get access_token it works ok,but when i access the api get_user_info,it return a xml header
not json object, what happening?
The text was updated successfully, but these errors were encountered: