Closed

Fix Python Script to use Google OAuth Refresh token and get new access token

This is what the script does now.

In my web app, users authenticate with Google. The token retrieved is meant for offline use so that my app can access Google Analytics data each day.

These tokens are stored in JSON format with other information that my app adds to the JSON, in a folder named /tokens/

The python script reads the tokens files from this folder parses the token, makes a query to Google Analytics and saves the re{"action": "set_ga_profile_view","blog_id": "245","post_id": "29", "token":{"access_token":"xxx"...}}sults in a new json file as well as returns them to the screen.

What you fix

If the original access token is expired, you will use the refresh token to get a new access token. Once it has a new access token it will use parts of the original json file from the /tokens/ folder and add the token. An of what you create is this...

{"action": "set_ga_profile_view","blog_id": "245","post_id": "29", "token":{"access_token":"xxx"...}}

Action, blog_id etc are all available in the JSON file that the python script is reading from the file in /tokens/ this is ready.

So when you fix the python to get a new access. The python script will http post a new JSON blob with new access token to my server so we can store the new updated token.

Your job to summarize is this.

When the python scripts makes a GA http post query and the access token has expired you will get a new access token using the refresh token.

Create a JSON blob and post to my server

Delete old token file in /tokens/

Let script continue looping over all files in /tokens/

You MUST be able to complete this in 2 days. I have use postman to do HTTP post to see how to get new refresh tokens. It's very very easy. I do not have time to fix this python script. If you're unable to complete in 2 days do not bid.

Skills: OAuth, Python

See more: oauth2credentials, developer information: invalid_request - invalid redirect_uri parameter value, azure missing access token parameter, django oauth2 refresh token, django oauth toolkit refresh_token, python oauth2 refresh token, missing access token parameter, missingtokenerror: (missing_token) missing access token parameter., script will use addresses send searches google bing, translate google script php, google chrome fix bugs, update access database using script, nmea data google kml files use, access outlook java script, logon script net use win2003 rdp

About the Employer:
( 9 reviews ) Mount Sinai, United States

Project ID: #14385740

14 freelancers are bidding on average $146 for this job

mananraja

Hi there, I have experience with OAuth using PYTHON. I have read the description and we can discuss further details in private message.

$150 USD in 2 days
(37 Reviews)
5.1
bestit4u

Hello. I ‘ve read your post and very interested in your job. I ‘m sure I can satisfy you with my skills and talents. I have much experiences in programming and developing software. I major in Unity3D(AR & Google Tan More

$222 USD in 3 days
(14 Reviews)
5.0
guptaabhinav

Expert python developer with experience of over 100 projects and masters in Data science and science. I can build the code to compete the oauth requirements.

$144 USD in 2 days
(15 Reviews)
4.6
$225 USD in 2 days
(3 Reviews)
2.7
peioris

I have knowledge on how access tokens work and how to refresh them. I have made projects involving API's that request tokens for authentication so this will be easy for me.

$30 USD in 2 days
(5 Reviews)
1.7
asin1987

Dear Employer, I am a Python expert and will do any job using Python. I have done a lot of jobs using Python as a language. Just give me one chance and you will not be disappointed. Thanks and Regards, Ashish Si More

$250 USD in 3 days
(0 Reviews)
0.0
vw6529696vw

I am starting a career in freelancing and trying to build long term relationship with my clients. so good ratings is very important for me at this point. In-Shah-Allah it will be an easy task for me.

$155 USD in 10 days
(0 Reviews)
0.0
youknowmeright

Hi, I will do it in one day. Contact me. Thank You

$111 USD in 1 day
(0 Reviews)
0.0
lawSamuels

oauth is my field. let me help you :)

$187 USD in 3 days
(0 Reviews)
0.0
amareshdash12

The bid is cheap but the work wont be. I have a 4 years experience into Python and have worked on robust Natural Language Processing.

$155 USD in 3 days
(0 Reviews)
0.0
Zubairashraf123

Hi I am zubair I have 8+ years experiences working in oauth, python languages’ have completed lot of projects related to this project. After carefully reviewing the experience requirements of the job description. I f More

$30 USD in 2 days
(1 Review)
0.0
ishtiyaqahmad

Hello, My name is ishtiyaq, I am certified python expert I have 6 years+ experience in python language and I have completed 100+ projects using python .. Expertise : Python, Django, Django-Rest- Framework and many p More

$30 USD in 4 days
(0 Reviews)
0.0
gaurav3ansal

I've worked on oAuth and oAuth2 for Google Analytics and Google AdWords. Worked on getting refresh tokens. Can discuss in detail with you.

$200 USD in 2 days
(0 Reviews)
0.0
kpstsp

Hello. My name Konstantin. I'm already finished few projects related with google api (using Google drive, Google Calendar) I used OAuth authorisation in them and understand what you talk about. Relevant Skills and Exp More

$155 USD in 3 days
(0 Reviews)
0.0