How do I find all Google groups I am member of via api? - google-apps

I have a Google Apps account (now, G Suite). I want to find out all groups I am member of via api call. I know that this can be done from UI. https://webapps.stackexchange.com/questions/46711/where-can-i-see-the-groups-i-am-a-member-of-in-my-enterprise-account . But I need to do this from an api call. Thanks.

Google Admin SDK has an api for this. This is the api to use.
https://developers.google.com/admin-sdk/directory/v1/guides/manage-groups#get_all_member_groups

Related

Adding MS Graph API Oauth in Azure Bot Services using REST API

I am using REST API for Azure Bot Services and GRAPH API for creating MS Teams Bot.
I have been using two different oauths for my application since I require my bot to get details from GRAPH API.
https://login.microsoftonline.com/botframework.com/oauth2/v2.0/token - for bot services
https://login.microsoftonline.com/common/oauth2/v2.0/token - for graph api
Is there a way to combine them, and use single ouath for both the purpsoses? I went through the documentaion and there is a way where bot can ask for graph api authentication from user.
I saw many examples for SDKs but I am not able to figure out how to do this in REST API.
I have followed this documnetation uptil here.
Can anyone please let me know if I am doing it right and further steps to be taken to add MS Graph API Oauth in Bot itself?
No. There is no way to combine them. We can only use a one token for one purpose.
The document you provided is to tell that we can use a bot to call Microsoft Graph. See reference here: Add authentication to a bot.
Creating the bot and use the bot to call Microsoft Graph should be should be two separate processes.
After creating the bot, you need to configure the AAD authentication to it, then you could use it to call Microsoft Graph.
See the Bot Graph sample.

Facebook Audience Overlap via API

Is there a way to query the overlap feature as it's possible in the Business Manager via the php sdk for the marketing API?
I'm thinking sending two or more audience IDs of existing audiences and getting the overlap back? I couldn't find anything in the docs so far.
Any help is greatly appreciated!
No. There is currently no php sdk support for this and the API call is not documented.
If you are willing to make direct call you could call graph.facebook.com/v2.10/act_< acctid >/audienceoverlap?access_token=< access_token >&comparison_ids=["< audienceid >"]&pivot_id=< audienceid >
Most likely you'll need the browser's access token for this.
This call is working at api v10.0 but it no longer exist
The old call is
act_id/audienceoverlap?pivot_id=6124596383156&{comparison_ids=["audince1_id","audince2_id"]}

Facebook Marketing API - no app?

I want to pull ad data (campaigns, ad sets, & metrics like clicks/impressions/ctr) from Facebook using their API and put it into a database. Facebook's documentation says I need to create an app on their site in order to access the API, but that doesn't seem right. I'm not trying to create an app for my fb page, just want to extract data.
My first choice was to use an ODBC driver from
CData
, which does allowed me to successfully pull data from AdAccounts but threw an error when trying to get AdSets or AdStatistics:
OAuthException Code 10: You do not have sufficient permissions to perform this action.
I made sure to add in a target='act_{myAdAccountId}' parameter to the query, as per their documentation, but it didn't help. I figured this meant I didn't configure the driver properly, so maybe I'd have better luck just coding up a solution in python or php.
Next, I tried to run similar API calls using the Graph API Explorer and got the same error message. I created an access token that had all the extended permissions and then made a request to
GET /v2.4/act_{myAdAccountId}/adcampaigns.
This gave me the exact same OAuthException Code 10 error that I was getting through the ODBC Driver.
Can someone confirm whether it's possible to pull data from the API without building an app? If so, what permissions do I need to enable for my account? I'm already an Ad Account Admin in the "Ads Manager", and couldn't find anywhere else to set permissions.
Thanks!
Apps have no direct relation to Pages. You need to create an App for any API access. I did not use the Ads API yet, but i assume you need to use the ads_management permission with your App.
How to create Apps and authorize with the required permissions is explained in the docs: https://developers.facebook.com/docs
Since you asked about Login Review, all the information you need about that can be found in the docs too: https://developers.facebook.com/docs/facebook-login/review
I understand this is an old post, but in case if anyone was looking at a similar situation, I was able to call the Facebook Marketing API without building an app.
I posted a similar answer on another more recent question (Do I need a publicly accessible webserver in order to user Facebook's marketing API?), and was curious if this situation puzzled anyone else, which led me to here.
I wrote my API calls using Python 2.7 on Juypter notebook, and I just followed Facebook's Marketing API documentation and examples, modifying with my access tokens and account information.

Which Google API can access Hangouts Data?

What Google API would be the easiest to father the following information:
A list of all hangouts currently going on in my Google for Work Organization
People in those Hangouts
Links to join those hangouts.
I think the link below maybe could help.
It provides basic information such as getting the list of participants, getting the URL for the Hangout, and getting the HangoutId.
https://developers.google.com/+/hangouts/api/gapi.hangout#gapi.hangout.getHangoutId

Using both Facebook Graph API and Old Rest API? Please help!

I am developing a Facebook application that will use Facebook events.
I want to be able to create and edit event as well as invite users friends to the event.
I prefer to use the new Graph API to handle all connections with Facebook and I many ways I am able too, but, the Graph API cannot send invites.
I saw that the Old Rest API got far more ways to interact with Facebook so I tried to use both systems on the same time but when I send the Access token that I have created with the Graph API a long with a call to the old API it says "Invalid OAuth 2.0 Access Token".
My question is, is there a way to convert the new Graph API access token to be used with the old rest API? Is there perhaps another way to get both systems to work in the same application?
Please help! All input are welcome.
I´d recommend against the old REST api. Support will be canceled sooner or later and then you will have to port to graph api anyway.
To send invites to your app you can use fbml/xfbml. try the http://developers.facebook.com/docs/reference/fbml/multi-friend-selector togehter with the JavaScript SDK as described here: http://www.takwing.idv.hk/tech/fb_dev/jssdk/learning_jssdk_11.html
good luck!