APP Inventor get current user functionality - app-inventor

I know on the Google App engine there is support for Google Accounts via user = users.get_current_user() functionality. I have used this and then I request the user to create account on my app. Is there anyway for the phone app to gain assess to the the user = users.get_current_user() functionality?
I have seen the example of creating a register / login on AI and storing it on TinyDB but the Google UserID is already available on the app engine. How do I access this functionality on the phone app?

with OAuth you can ask the user for permission to view his email address and read that information from his Google profile, see an example how to do that with App Inventor here http://puravidaapps.com/taifunOA.php

No, this feature does not exist. It has been proposed and can be voted for here.

Related

is there a way to make events on google calendar into accounts signed with OAuthv2.0 on a CMS laravel website

sorry if this question is not sraightforward. I searched a lot and didn't find the result I want.
I have a CMS website which a specific role of user can link their account on the website to a google account by OAuth. I want to create event in user's calendar from by a form in my website. Now I have set the Oauth and I've created a form that creates events in my developer account.
All i found is creating events on developer account. I found one exactly like I want but in electron not laravel

About using google drive api to one application that allow all registered user in drive to save a document

I am designing one application that use google API so all users can save file in their account. My question is, how i have to manage API Key in that scenario?
Example:
Suppose user Peter has a google drive account, then he login in my app and save the file, the same for all users that loggin in my app.
Best regards.

Is it possible to verify another 3rd party app is connected to a google account?

My objective is to verify a 3rd party app (that uses google for auth/sign-up/sign-in) is connected to a google account, by calling a google API from my google app. Is this possible with the current google APIs? I haven't been able to find any documentation on this which leads me to believe it is not possible, likely for privacy/security reasons.
The best I've come across is a call to: https://www.googleapis.com/oauth2/v1/userinfo?alt=json which doesn't seem to return anything about connected accounts. And https://developers.google.com/admin-sdk/directory/reference/rest/v1/users which is for users in an enterprise domain which doesn't help me as my app is for consumer users.
There is no way for you to know what apps a user is using on their account. Even if its your own app there is no way of knowing. Unless the user has authorized you and you have an access token then you will know they have verified your own app.
Having an api which would tell us what apps a user has authorized IMO would be a bad idea.

Separate Google login from Google Calendar API

I have a platform that allows people to sign up/log in with their Google account.
Inside the platform, there is a calendar feature where people can connect their Google Calendar and share the data between our app.
I'd like to know if there's a way to separate google calendar with the normal login stuff, so when they sign up with Google, we won't be asking for their Google Calendar permission. Once they are in the app, if they want to connect their Google Calendar, they can do so by clicking another button.
Currently, the 2 things are linked together and I'd like to separate them.
My app is https://clascity.com/
Any help is greatly appreciated!
Just because you use Google signin (openid connect) does not mean that you have permission to access the users Google calendar data.
Google calendar data is private user data, you need specific permission to access the users calendar data, you cant just let them login without asking for permission to access the data you need to access. The user needs to know what data you will be accessing and accept that specifically though the authorization form that google supplies.
Yes, in fact, what you are suggesting is considered a best practice [1]. Use incremental authorization as described here [2].
[1] https://developers.google.com/identity/protocols/oauth2/policies#unbundled-consent
[2]
https://developers.google.com/identity/sign-in/web/incremental-auth

Integrate Facebook Payments with Facebook Ads API

I am creating an web app that enables users to create facebook ads. The problem is that every ad needs a budget. So I need the user to be able to set a budget and pay for it using his credit card or phone or anything else. Is it possible to do this? Do you have an example or tutorial? I have searched on google but I didn't find anything useful.
In short, no. Payment method setup isn't exposed via FB APIs. Furthermore, it depends on whether these users are using their own FB ad account through your platform or whether they're using yours.
If it's under your own ad account then you'll need to build account and payment controls yourself which is outside the scope of the FB ads platform and API.
If you let users enter their own ad account information and authorize your app to create ads on their behalf then you could just have them manually set FB payment method information as part of the onboard process for your web app.

Resources