My goal is to explain the majority of the important details, but also allow people to come to their own understandings and become better developers themselves. Glad to see the tutorial was helpful, thank you for the comment.
I get the "has been blocked by CORS policy: Response to preflight request doesn't pass access control check: No 'Access-Control-Allow-Origin' header is present on the requested resource. If an opaque response serves your needs, set the request's mode to 'no-cors' to fetch the resource with CORS disabled." when I try to create a file, can someone help?
Thank you Cooper. Your tutorial is the best among 10 other tutorials that I've watched. Only one thing, if someone else login with another Google account, he will access to his own google resources?
Thanks you for the great content. Was really what I was looking for 😃. Please a question: I am currently working on a project with Firebase storage and Firestore. How to do the same with it?
Thank you for the great video. Would you know how to add a custom name to a google sheet? I was able to use the fetch command, replacing the link with the one for Sheets, to create new Sheets. However, I was not able to assign new Sheets a custom name using "?title=Custom Name".
You should be able to pass variables into the body of your request with the Fetch API. I haven't looked into the Sheets API so I am unsure which variables need to be set, so hopefully the Sheets API Docs can provide that. developer.mozilla.org/en-US/docs/Web/API/Fetch_API/Using_Fetch#supplying_request_options Here is an example of passing in options to a Fetch API call, although a little complicated hopefully this gets you going in the right direction. In the example they set the variable "answer" equal to 42, so in your situation I'd assume it's something more like "title" equal to "This is my custom title here!".
const data = { title: 'example' }; fetch('', { method: 'POST', // or 'PUT' headers: { 'Content-Type': 'application/json', }, body: JSON.stringify(data), }) .then(response => response.json()) .then(data => { console.log('Success:', data); }) .catch((error) => { console.error('Error:', error); }); An example further down in the Fetch API docs from above, a bit more simple than the one I linked. developer.mozilla.org/en-US/docs/Web/API/Fetch_API/Using_Fetch#uploading_json_data
Excellent demonstration of Google docs API. You explained the topic in a very concise way without much handholding.
My goal is to explain the majority of the important details, but also allow people to come to their own understandings and become better developers themselves. Glad to see the tutorial was helpful, thank you for the comment.
Thanks!
You're welcome! Appreciate the super thanks, and glad the video was helpful for your project. Thank you again :)
This is just what i needed for a project I'm working on. Thanks!
I get the "has been blocked by CORS policy: Response to preflight request doesn't pass access control check: No 'Access-Control-Allow-Origin' header is present on the requested resource. If an opaque response serves your needs, set the request's mode to 'no-cors' to fetch the resource with CORS disabled." when I try to create a file, can someone help?
Thank you Cooper. Your tutorial is the best among 10 other tutorials that I've watched. Only one thing, if someone else login with another Google account, he will access to his own google resources?
i have added all these scope in the oatuh but it doesnt ask me for those scope
It doesn't work anymore, any alternative?
How to get all the google docs of users and show in UI and when he click on a doc it will open. How can I do this?
Is there any way when creating this document in docs to give permissions to another google email?
ur actually goated - easy to follow tutorial 👌
Wonderful video. Thank you. I have a question: How do I do if I want to upload files to my user's drive account?
hey i was wondering how did you hide the logout button before logging in, and vice versa? could you share the original code please?
Awesome! Thank you, I hope to upload more videos about Google API with a more complicated Project.
Thanks you for the great content. Was really what I was looking for 😃.
Please a question: I am currently working on a project with Firebase storage and Firestore. How to do the same with it?
may i get the github link of the same code
It doesn't work anymore, any alternative?
Thank you for the great video. Would you know how to add a custom name to a google sheet? I was able to use the fetch command, replacing the link with the one for Sheets, to create new Sheets. However, I was not able to assign new Sheets a custom name using "?title=Custom Name".
You should be able to pass variables into the body of your request with the Fetch API. I haven't looked into the Sheets API so I am unsure which variables need to be set, so hopefully the Sheets API Docs can provide that.
developer.mozilla.org/en-US/docs/Web/API/Fetch_API/Using_Fetch#supplying_request_options
Here is an example of passing in options to a Fetch API call, although a little complicated hopefully this gets you going in the right direction. In the example they set the variable "answer" equal to 42, so in your situation I'd assume it's something more like "title" equal to "This is my custom title here!".
const data = { title: 'example' };
fetch('', {
method: 'POST', // or 'PUT'
headers: {
'Content-Type': 'application/json',
},
body: JSON.stringify(data),
})
.then(response => response.json())
.then(data => {
console.log('Success:', data);
})
.catch((error) => {
console.error('Error:', error);
});
An example further down in the Fetch API docs from above, a bit more simple than the one I linked.
developer.mozilla.org/en-US/docs/Web/API/Fetch_API/Using_Fetch#uploading_json_data
Can u make one video creating Google sheets using reactjs with Google API
Great video. I have a question. Can we write data to Google Sheet using React? Maybe you can help with it😀
I'll give a look into this for sure! Maybe a series on multiple google drive related topics / API usage
Thank you so much sir ❤
Please make a video on document.batchUpdate metod with react (this is also a Google doc api )
This was an amazing tutorial!
Thank you for your support! Appreciate it
Thank you so much TwT
Thank you..learned so much
Glad it was helpful! Thanks for watching :)
Doing it the gapi way is deprecated the new way is google identity service
It doesn't work anymore, any alternative?
github ref would be great
Nice one
Thank you kindly, appreciate the support!
Getting an error in authorized javascript URI its is showing invalid. It wrote: "loacalhost:3000"
I think it should be localhost:3000 you may want to double check your spelling
and also its http not https
Thank you so much TwT
Thank you so much TwT