i've developped a webapps that use google drive api (javascript) to open file and it can be use directly from google drive to open specific files.
When users open files from Google Drive, an autorization dialog box appear to allow my apps to open the file, but when you re open the same file or another, this dialog box appear too, how can i do to open this dialog box just the first time a user open a file ?
Users do not have to grant access to the app every time they run it. You can store their credentials in a database and reuse them when needed.
Here's an example for Java(You can find more details for other language-specific sample) DrEdit guide for a complete sample app showing how to get a complete set of credentials for every request:
https://developers.google.com/drive/examples/java
Related
I created a random sheet and then clicked publish to publish this google sheet publicly but for some reason when i click on my public link after signing out it will ask me to login again. This did not happen in the past. Has something changed with google sheet?
FYI i am not restricting access to anything or anyone i am publishing this as a public link but not able to access the link if i am not signed in.
I suggest others try it out and see if they get a different result or maybe there is restrictions on my account.
This is an ongoing issue that started yesterday. At my workplace, we are using it for years now. But suddenly the scripts started failing. HTML output is working fine but CSV, TSV formats are asking for login.
A temporary fix would be to change the sharing permission of the spreadsheet to Anyone on the Internet.
Issues started popping up on google support:
https://support.google.com/drive/thread/83705117?hl=en
https://support.google.com/docs/thread/83645178?hl=en
https://support.google.com/docs/thread/83744355?hl=en
https://support.google.com/drive/thread/83700244?hl=en
No solution or reply from the google team yet!!
not to sure, but when your posting, there should be a new option that lets you grant and restrict access. from the screen shot you provided, it should be somewhere in the "published content & settings" section at the bottom of the publish screen. once you do that it should open the access options and youll be able to allow anyone to view the document. The link you provided is still coming up as access denied. Let me know if you need more help and ill provide some pics and more details.
I can confirm that we experienced the same error yesterday - out of the blue our export scripts started failing.
We only experience this with CSV/TSV published Google Sheets, and we also made sure that there are no viewing restrictions whatsoever. If I publish as a website, I can still open that anonymously in a browser.
This is however useless as the data was being parsed as CSV.
A workaround is the following:
Click the Share button.
Click get link section of the modal.
Make sure "Anyone with the link" is selected.
Copy the URL and click done.
Post-fix URL with: /export?format=csv&gid=0
If you need a specific sheet, find the gid by clicking on that sheet in your browser and copying the gid from your browser's url. gid=0 is the first sheet.
Adjust all of your bash scripts with the new URL.
Enjoy!
enter image description here
I have been integrating Google sign-in for syncing the calendar events using Google Calendar API. While trying to sign in, I am getting this.
As you can see the name of the project/app is displayed as "project-xxxxxxxxx" rather than the project name itself. How can I display the original project name here?
I have already tried
How do I set the project name in the Google iOS Sign-In screen?
, but of no use!
Atlast I found it!
I am also using Firebase for database. So when I checked its console , there is an option "Public-facing name" and renamed it. It worked!
Steps for the solution:
Go to Firebase Console and select the project.
Under Settings, select the General tab.
Change the Public-facing name by clicking the Edit button and then Save.
Please check the below image.
You need to create the OAUTH Client_ID by mentioning with your project name. It will display the same name which you specify in Google auth Console.
click here to open google auth console.
Open: Google Clound Platform /
APIs & Services / OAuth consent screen
Edit project name
I have google api service account.I successfully upload the file on the drive, open the file on browser.But i am not able to get the edit mode.How can i open a particular file in edit mode.And the changes will reflect to original files.
Currently i open the file using link "https://drive.google.com/file/d/0B6TZcMlVILILeEN2al9KanZBS1k/view?usp=drivesdk" this does not support the edit mode. When the current user sign in on the above link page then i see the edit option but it saves to the current user logged in account and not reflect the original file.
You can try the above link its working now.
I am developing the application in asp.net MVC and using google api v2
One approach is to share the files to the users (depending on type in your use case). Once the file has been uploaded (thru Service Account), additional settings will be required to share the file. Set the role as writer and you'll be good to go (by calling the File's selfLink)
I'm adding Google Analytics to my iOS app, and there seems to have been some changes in the SDK. The tutorial at https://developers.google.com/analytics/devguides/collection/ios/v3/ says that I have to create a configuration file, but when I click on the "Get a configuration file" link I'm directed to a page that just shows a loading spinner (with some errors printed to the browser console).
I don't have time to wait for Google to fix their service, so I'm wondering if it's possible to create the file manually?
It seems that if you look at the error in the browser console and go to the URL it can't load, you can sign in and it works. And thereafter, the original link works too.
As crazy as it sounds, I resolved this error by using Internet Explorer to load the site.
user102008's answer worked for me. I also noticed that if you create a new Property in the GA Admin panel, the configuration file generator page will load properly.
I'm building a facebook app which uses open graph to publish stories. I can successfully publish the stories but what I want to do is to customize the app link in the story(circled in the given image).
Currently my link to "posted via APP_NAME" is referring to the Facebook appcenter page of my app. All I want to do is to customize the link and make it refer to my personal website. How can I do that?
Do I have to specify any extra parameters while making a POST request to facebook??
As far as I know this link leads to one of:
Canvas URL if you have a canvas app
Site URL if you have no canvas app just website with fb login
You can set both in App Settings (https://developers.facebook.com/apps/)
Looking through the logs it's impossible to distinguish it from people just accessing the app.
Add a canvas application with an address of page with this code:
<script>top.location.href = 'http://your-website.com'</script>