YouTube API setup

Can someone help me set up my YouTube API. it has been hours and i cant figure it out, error after error :cry:. i need button that a user presses to link their YT account to my website and then it pulls their data (views, subs, likes, etc). i also need time frames so the can get data from last 7 days, 30 days etc. i have that most of that up, i just need to setup the oAuth thing and actually make it work. i need the dates in the parameters to be dynamic so they update to the new date and so i can pull data from different time frames, e.g. last 30 days. but that needs to be formatted as a date that changes.

Here is a Youtube video on setting up Google 0auth.

thanks that helped! :smile:

now i have done that i am having problems with the date range and actually making the states on my page change that dates in the call.