Comments (17)
from youtube.
@aanandshekharroy what do your tokens look like though in your database? I asked in #22 but you didn't say:
It should look like this:
{
"access_token": "ya29-XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
"token_type": "Bearer",
"expires_in": 3600,
"refresh_token": "1/XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
"created": 1450033203
}
from youtube.
@joedawson I don't have "refresh_token" in my database, except this, everything is there.
from youtube.
Okay, you should be getting a refresh token. I'll look into it to see what it might be and get back to you.
from youtube.
@aanandshekharroy I also recommend truncating your youtube_access_tokens
table and trying to authenticate again.
from youtube.
@aanandshekharroy Same issue here. Don't get the refresh_token field.
from youtube.
done the same thing as: http://stackoverflow.com/questions/10827920/not-receiving-google-oauth-refresh-token
and the problem solved.
from youtube.
Now the issue is how to get new access token using refresh_token?
from youtube.
It should automatically handle tokens. You don't need to do anything to get
a new token.
On Tuesday, 5 July 2016, moh3n65 [email protected] wrote:
Now the issue is how to get new access token using refresh_token?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
#26 (comment),
or mute the thread
https://github.com/notifications/unsubscribe/AA9oIB-XrEi6gQ7Y5XbEsKwLcZH7aGB1ks5qSgoegaJpZM4JCBJ_
.
from youtube.
have set approval_prompt to:
'approval_prompt' => 'force'
and deleted every rows from table which are not included "refresh_token", means the last row must have the refresh_token so it can get access_token again and again.
It works fine now.
from youtube.
Closing due to inactivity @aanandshekharroy, please feel free to create a new issue if you still require help.
from youtube.
Once I've go through steps you given in this library.
{ host }/youtube/auth
This URL redirects to login page. & after successfully login with required permission. I'm able to upload video till 1 hour. then after it doesn't work.
Please reply asps.
Thanks in advance.
from youtube.
Please delete all tokens in the database and re-authenticate.
from youtube.
All tokens removed from database & after that i've again followed same step.
{ host }/youtube/auth
and received following object in database
{
"access_token": "{access_token}",
"expires_in": 3598,
"token_type": "Bearer",
"created": 1494248251
}
NOTE : here, access_token is removed intensionally
But this will also expiry in next 60 minutes. So, what should i do now.
My question is 'm using cron job to upload videos. What should i do to prevent login prompt each time i upload video?
from youtube.
Something isn't set up correctly, you should have:
{
"access_token": "XXXXXXXXXXXXX",
"token_type": "Bearer",
"expires_in": 3600,
"refresh_token": "XXXXXXXXXXXXX",
"created": 1450033203
}
Notice refresh_token
? Try this: http://stackoverflow.com/a/10857806
from youtube.
After following steps on following URL http://stackoverflow.com/a/10857806
I've received following thing in database
{
"access_token": "XXXXXXXXXXXXXX",
"expires_in": 3600,
"refresh_token": "XXXXXXXXXXXXXX",
"token_type": "Bearer",
"created": 1494302399
}
What's next ? I mean after 3600 seconds.
from youtube.
Thanks a lot @joedawson . Everything works fine. as per my expectation.
Thanks Again.
from youtube.
Related Issues (20)
- quotaExceeded - Exception returns error 500 HOT 4
- Undefined index: created HOT 1
- Re-authenticate HOT 1
- Playlist HOT 1
- 1MB chunk hardcoded should be moved to config HOT 1
- Upload with public parameter got blocked (private) on youtube HOT 1
- While uploading unlisted video it got uploaded as private HOT 2
- Not found exception HOT 27
- Add support to Laravel 8 HOT 1
- how can i make a playlist and push video to it ? HOT 1
- Add possibility to set embeddable status attribute
- How can I Share private youtube videos automatically? HOT 1
- Can't delete a youtube video
- call_user_func_array() expects parameter 1 to be a valid callback, class 'Google\Client' does not have a method 'getVideoInfo'
- PHP 8 and/or 8.1 support? HOT 2
- filesize(): stat failed error HOT 1
- Laravel 9 compatibility HOT 1
- Videos locked in private mode
- Why attaching thumbnail image is I got permissions error ?
- Suggestion: Option to adding videos to a youtube playlist id
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from youtube.