Access Call History in Actions On Google - actions-on-google

I was wondering if I could access the last dialled number or the call history in Actions on Google. Accessing the contacts could be done by linking the account using OAuth and then using api for contacts. Right? But is there a way to access the last dialled number/call history?

No, there is no way to access the users phone history via Actions on Google. Since the only interaction is via a webhook and the exposed API, you are strictly limited to what is in the Actions on Google API.

Related

Google Smarthome Action account linking missing user information

my code is based on this example
https://codelabs.developers.google.com/codelabs/smarthome-washer
The OAuth process is working. But now I want to know who is the user.
Here
https://developers.google.com/assistant/identity/google-sign-in-oauth?oauth=code
is described that:
After the user gives your Action consent to access their Google profile, Google sends a request that contains a signed assertion of the Google user's identity.
But if I test the authentication I never will be ask to give access to my Google profile.
I think that I have to configure which information my app wants to have from the user. But I didn't know where to do that.
I searched a lot but I couldn't find an example which really explains how to get the user information.
Thank you for your help.
Regards Simon
The OAuth process is working. But now I want to know who is the user.
Just a note here that the samples and codelabs use a fake OAuth implementation does not implement a user sign-in flow and returns a hard-coded fake access token during account linking.
Here
https://developers.google.com/assistant/identity/google-sign-in-oauth?oauth=code
is described that:
After the user gives your Action consent to access their Google profile, Google sends a request that contains a signed assertion of the Google user's identity.
Smart home actions do not support the Google Sign-In account linking flows. You need to implement the OAuth authorization code flow in your account linking integration.
I think that I have to configure which information my app wants to have from the user. But I didn't know where to do that.
I searched a lot but I couldn't find an example which really explains how to get the user information.
This is essentially the opposite of what account linking accomplishes. The goal is not to provide user information from Google to your Action. Instead, account linking is used to authorize Google to access your user's devices by providing Google with an access token that your service considers valid for a particular user within your cloud service.
So in this case, you are the one that owns the user data. You are simply providing Google scoped access to that data for sending queries and commands to devices.

How to use smartsheet API to get sheets which are upload by others

I am new to smart sheet. I need to use smart sheet API inside an Node Application to get sheets which are being uploaded by a user. I have gone through the documentation of smart sheet API. Document says to call API first need to get auth code which requires client_id. After getting auth code, need to get token.
I am not sure if I need to contact that user to get client Id or need to create new account. What should be my next step.
Having others use your application to get their data would require you to have them login to your app using their Smartsheet credentials. Then as the requests are made they can be done as that user. This is can be done by implementing the Smartsheet OAuth flow. There is more information on this in the Third-party App Development section of our API docs.
If you are using Node.js you can see a simple implementation of using our SDK on Github here.
As for the OAuth flow there is also an example of implementing that in Node.js on the Smartsheet Samples Github.

How can I allow users with their own slack account/company login to their slack account in my app

Everything I have read (e.g. https://api.slack.com/docs/oauth) makes it seem as though I can only build an app that integrates with a Slack team I manage. E.g. I have to create my Slack Client ID .. etc ... and then I can oAuth users for my team.
What I want to do is allow my app's users to login to my app using their Slack login (for their Slack team I do not control or have access to.) I don't want to force my users to generate a Client ID to use my app. I want them to login the same way Google Login or Facebook Login works.
The closest thing I have found is a "login with slack" HTML button, but I'd like to do it in iOS using Swift.
Is that possible?
Sadly, that's not possible. For google or facebook, the way authentication works is that they provide you a mobile API which handles the communication between your app and their web service. So you task is simply adopt that API, make simple function call and retrieve information for user from the API. For example, the facebook button is provided by the API.
However from a look at slack site, they only have RESTful API documented. So in this case, you have to handle the passing and storing of parameters by yourself, and send HTTP request manually. You can have a look at Alamofire framework, which is the best choice for making HTTP request. Basically, you have to send needed parameter with the specific url though HTTP request to perform a log in action, and you have to parse the respond data and then see if the login is successful or not, etc
Thanks to some help from friends it looks like the answer is yes.
You must first make sure you "Distribute App"
Then set up the permissions you require and "install app" (which is a bit not "smart" since you can accidentally add conflicting permissions and get an error when trying to install).
Once that is done you will get an Auth Token and can make requests for any user to login using oAuth.
You can also trigger a sign in request like so:
https://slack.com/oauth/authorize?client_id=[client id]&scope=identity.basic
Edit: For future Googlers, Slack now also provides a specific documentation page for this type of OAuth grant/login: Sign in with Slack

Service for getting data from Facebook API approval

not sure if this is strictly programming question (apologies in advance).
We have windows service which is responsible for downloading data from different API's on regular basis, it's just internal tool we are using on our server.
For purposes of oauth2 authentication we use our another tool, which can
handle multiple Oauth logins through different API's, then we just ask this tool for access token and use it in our calls. This works perfectly with e.g. AdWords, BingAds, etc.
Now we have a task to download data from Facebook API. But the problem here is that according to FB we need to apply application for approval in order to get permission to "ads_read" source, which can allow us to download ad insights.
But the problem is that our tool is not an application it does not have any icon, screenshots or Privacy Policy URL. Is there any possibility to get these data without application to FB? Maybe is there another way to login and get the data from user without using oauth2, thus no need for using the oauth2 and scope permissions?
Thanks in advance
As long as you're only using your app with admins/testers/developers of the same app, you don't need to go under Login Review. Only if you also want to authenticate "other" users as well.

Yammer search endpoint user access

I'm working on creating an application for a client that has to search Yammer for a term specified by a user. I'm using the Yammer JavaScript SDK to authenticate the user's login to acquire the access token which I then use to query the search REST API.
This is all working great, but I need to know about the user access rights using the SDK and REST API. Will the search endpoint restrict the search results to the groups and files that a user has access to? Or does the endpoint return everything that matches the search term regardless of the user's access to it?
Unfortunately I only have the one user account on the client's Yammer network to test with and can't really investigate the issue properly.
Any feedback will be appreciated!
It will return only what that user has access too
ie. If they can not see a hidden private group they would not be able to search for it
Try to think of the Javascript SDK emulating them logged into yammer.com