How to save data in a salesforce account using react-native? - 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!

Related

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

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

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!

Podio Contact API Untegration

I am trying to integrate Contacts API with one of our application. One of my client has created API ID and APP token key. I am using NuGet Package of Podio.
I am trying to use GetContactTotals. But I am not able to fetch no. of records. It is throwing an error. I have used AuthenticateWithApp method. Actually our goal is we have to fetch the contacts and sync with our application. When I use AuthenticateWithPassword method it fetches Contacts, which is more than in that particular app.
Could you please help with any example with which I can achieve this?
GetContactTotal method requires user authentication. Apps don't have access to user's contacts.
Also, some of contacts methods are deprecated (e.g.: https://developers.podio.com/doc/contacts/get-space-contact-totals-67508), so you might want to redesign how to store all contact information and use apps and particularly "Contacts App".
More details on how to organize contacts are here: https://help.podio.com/hc/en-us/articles/201019938-Using-a-Contacts-app-Importing-Contacts

Bigcommerce API where to fine client ID

I have a store on bigcommerce and i need to access the customers registered on our store using there api.
I havent created any app over there. I need to access the customers registering on our store.
According to api i need to use client id which we get by creating an app.
https://developer.bigcommerce.com/api/#request-headers
But actually i dont need to create a app i just want to use the store and fetch the customer details using the api into another application, can anyone please tell me how to get client id from the dashboard login.
You can use the legacy API (non-oAuth) credentials instead.
Guide: https://support.bigcommerce.com/articles/Public/Legacy-API-Accounts