How to add scopes using expo's example on Google Authentication + firebase - react-native

I'm creating an app using react native + expo + firebase + google apis.
I'm trying to use certain Google products (lets say, calendar)
I'm trying to grab user's access token from Google
Expo has this document
https://docs.expo.dev/guides/authentication/#google
Unfortunately, their document is not complete, there's no other guides or API documentations. (They don't even document some functions that they are using)
There's no instructions on how to add scopes when following this method.
Has anyone succeeded in attaching a scope and grabbing a valid access token?
Any help would be appreciated, Thanks

Related

Get google account name and email in react native

I want to get mobile's google account email and full name. I tried react-native-user-identity package but this is returning me only email id.
try using Google firebase and follow along their authentication docs you can also use their database creation feature to store the users firebase link
it works good with react-native

Read/Write Google Sheets API on react-native

basically I want to use Google Sheets API on my React Native project to write some data there on a single sheet.
Here are the problems I'm facing after searching for hours:
I want to be able to read and write, such as creating new sheets inside the spreadsheet, hence I can't use the public API or an API key.
I don't need the user to login, so I can't use the Google sign in API. More like, I want my developer account to be signed in, as I wanna use my own single spreadsheet for all users. Think of it as using it as a database for my app (don't worry, I'm not).
I found many wrappers but they're all meant for node and don't work on react native.
I'm trying to use the vanilla google APIs, but I'm having trouble getting an "Access Token" as the only way i found to get it was by making a user sign in. I created a Service Account but I can't figure out how to use on react native. The npm module I found doesn't work on react native.
So I guess here is what I'm looking for: either
A wrapper for Google Sheets API that takes care of authentication as well.
How to get an access_token for my developer account, without prompting the user to sign in.
Thanks!

How to save data in a salesforce account using react-native?

We are building an Application and we need to store some data to the user's Salesforce account. I looked into some solutions where people are using Apex but I am unable to understand how to use them with React Native.
Please give me some good documentations to refer of How can I save my data from my React Native App to my Salesforce Account.
I tried to look into Apex and visualforce but not understanding how to use it with React Native.
For react Native you will have to call REST API exposed by salesforce. You will need to create a connected app and get the security key and client id. Use them to authenticate and get a access_token. Once you have that token, use it to make a POST call to /services/data/v45.0/sobjects/Account using the account id. Send a JSON payload to add your data.
Example of a GET call is :
/services/data/v45.0/sobjects/Account/0013600000udFs8AAE
Hope this helps!

Google Youtube Data v3 not found

I have gone through a tutorial that takes me to the console.developers.google.com/ webpage. I created a new project, then i went to API & Auth .. clicked on the API key to try to then scroll down and select the Youtube Data API v3 and it is NOT there, why? I need to get the API key for an application I am using. I have logged in to two separate accounts and it is not available in either account. I need help in finding the API key so that I can use it in an application. I called the adwords team and asked them and they asked me to send a question to you in this forum.
By default, there were a few Google Cloud APIs enabled by default. When they were enabled, the Youtube Data API was not showing up in the list of available APIs. I disabled all the preselected APIs, and then the Youtube Data and Analytics APIs were available.
Looks like you just have to disable the default selections for some reason.

How to Integrate Google+ API iPhone

I am working on an iPhone application in which i have to implement Google+ API for login and fetching user details.I have used the API for it from this link https://developers.google.com done everything but immediately after login I am getting an error invalid scope.I don't know what i am missing out.Please let me know how to acheive this.
Thank you.
To access certain stuff on behalf of the user, we need to tell google that we are looking for such information (Access calendars, google+ etc).
The way to tell this to google is by defining scope. For google plus use
#"https://www.googleapis.com/auth/plus.me"
Refer to the SDK where to pass in the scope. Also make sure that you enable Google Plus in the Google API Console.