EventBrite APi methods - eventbrite

I am trying to use this url for the event attendee information
I am not getting full details of the attendee, but response contains the attendee id only
<attendees>
<attendee>
<event_id>3135062055</event_id>
<id>110210217</id>
</attendee>
<attendee>
<event_id>3135062055</event_id>
<id>110216615</id>
</attendee>
</attendees>
but in the doc I can see the full repose!
what parameters I need to add for this one to get a full attendees information and also
I want to get all the attendees info in one shot itself ?
please help me to achieve above.
Thanks in advance,
Venkatesh

If you have authorized Eventbrite's API docs to access your account, then your user-authentication credentials will automatically be added to any requests that you make using the documentation's 'Try it Now' feature.
If you add a user_key, or Oauth2.0 access_token to the request, then you should be able to successfully access your attendee information.
Your other option is to configure your event to have a public attendee list. This would allow any attendee information that is publicly visible on your event page to be available via the API URL that you shared (without requiring you to add your private authentication tokens). Make sure that you reserve the use of this feature for events where the attendees are comfortable disclosing this info.

Related

Get call record by calling Microsoft Graph API(beta)?

I am new to Microsoft Graph API, my ultimate goal is to create a Power BI report to show Microsoft Teams call related matrix.
From the documentation i can see the HTTP sample (https://graph.microsoft.com/beta/communications/callRecords/{id}). There are couple of things that are not clear in the documentation.
Where can i get the call id to use in the sample request.
CallRecords.Read.All permission is required to get call data, where do i need to set this permission and what is the process.
I can help with item 2. Your CallRecords.Read.All permission needs to be added for GraphAPI in the API Permissions in AzureAD (https://aad.portal.azure.com/).
But I'm probably trying to do the same as you. And also need to figure out how to get the Call Id.
Laurence
Where can i get the call id to use in the sample request.
You can get the call id from 2 places:
From Office365->Admin->Teams->Search User->Call History->Select a call history
The call id is in your browser address bar, for example https://admin.teams.microsoft.com/users/xxxxxxxx/calls-session/e57d1123-af1c-4d07-8153-c38a1320e3b2
Create a callRecord subscription
O365 sends HTTP POST to your endpoint each time a call is completed. The payload will contain the call id.

Can't access Microsoft Graph users calendars 403

I have seen other posts that are very similar, but I don't find a real answer. Some say "it is coming", those are old.
I am authenticating with the Admin credentials to our O365 and trying to pull calendar information. The Scope has Calendars.ReadWrite (which falls under App-Only and Delegate as far as scopes), but it always returns a 403. ErrorAccessDenied, "Access is denied. Check credentials and try again"
The Graph doc for calendar views shows it can send in users/{id} in the request, and the id's came back when I listed all the users. Of course if I use mine, it works.
If there really is an App-Only scope vs a Delegate scope for this same scope name, how do you specify that?
Is there something I have to specify in O365 for my admin user so it has rights? I can delete or create any user with that account in O365, so it appears it should have what it needs.
Thanks
So, App-Only has a slightly different flow.
First, instead of authenticating the user at "https://login.microsoftonline.com/common/oauth2/v2.0/authorize", you authenticate them at "https://login.microsoftonline.com/common/adminconsent".
Second, you pass in the same parameters minus "scope". Scope is determined by your Application Permissions defined in you application that you registered at apps.dev.microsoft.com.
Third, when you receive your callback you will not have a "code" to use to go and retrieve your Access and Refresh tokens. Instead, you will receive a "tenant" property and an "admin_consent" property. "admin_consent" will tell you whether you have the rights or not.
Fourth, when requesting your access token, you will not supply the "scope" or "code" parameters, but you will provide a "resource" parameter, with the value "https://graph.microsoft.com".
Lastly, the URL you contact to get the token will change from "https://login.microsoftonline.com/common/oauth2/v2.0/token" to "https://login.microsoftonline.com/{tenant}/oauth2/token", where {tenant} will be the value returned.
Please note that in the URL that "v2.0" is missing. That isn't a typo. If you do not remove that from the path you will get errors about an invalid or missing "scope" parameter.
Once it successfully returns your Access and Refresh token, the flow seems to follow normal delegated access.
Here are a couple of links that Microsoft gave me, with their guidance to help figure this out.
https://learn.microsoft.com/en-us/azure/active-directory/develop/active-directory-v2-scopes#using-the-admin-consent-endpoint
https://developer.microsoft.com/en-us/graph/docs/authorization/app_only
(Big Thanks to Jeff at Microsoft)
Latest doc is here: https://learn.microsoft.com/en-us/graph/auth-v2-service
I followed it and I was able to read/write other's calendar with permission Calendars.ReadWrite.

Where do I find my or my customers YouTube "content owner id"?

Am trying to figure out the API. Were in the web interface can, as an administrator, find the "content owner id" of my managed accounts?
All I see is this:
"To retrieve a content owner report, call the API's reports.query method and set the ids parameter value in the API request to contentOwner==OWNER_NAME, where OWNER_NAME specifies the content owner's ID. Ask your partner manager if you are unsure of the value."
Surely I don't have to call Google to get this value?
If you want to know the content owner id of only one account, you can check the URI.
There are various ways to retrieve the id from the URI:
Log in on https://studio.youtube.com/ and switch the account to the
one you're trying to get the id of (on the top right click on the
account logo, then on "Switch account"). When you've switched to the
new account, the content owner id should be in the URL in the part
that follows https://studio.youtube.com/owner/.
Go to https://www.youtube.com/analytics and switch to the desired
account. The content owner id is what follows
https://www.youtube.com/analytics?o= and before &ar.
The second option should also work for other sections in the Youtube
creator studio.
If you want to retrieve a list of all content owner IDs linked to your admin account, it's much easier to do it via the API. If you don't want to write a script for that, you can just use the Google API explorer (on the right) here: https://developers.google.com/youtube/partner/docs/v1/contentOwners/list
Just set fetchMine to true and sign in to your account. The output below should give you a list of the content owner names, IDs and other info.
To retrieve the content owner IDs via the API, samples can also be found here:
https://developers.google.com/youtube/partner/code_samples/
(check the docs "Retrieve a content owner's managed channels (channels.list)" in your language).
You may refer with this SO answer on how to get the content owner id.
Assuming you have an OAuth 2 token with access to the https://www.googleapis.com/auth/youtubepartner scope, you can make an API call to youtubePartner.contentOwners.list(fetchMine=true) to get back a list of YouTube content owners associated with the current OAuth 2 token. (There will normally only be one item returned.) You can then get the content owner id value from the id property of each item in the items list that's returned. This is the value that you can use when making content owner YouTube Analytics API reports, or using the onBehalfOfContentOwner delegation parameter in the YouTube Data API v3.
You need to query youtubePartner.contentOwners.list(fetchMine=true) to obtain the content owner info. Also make sure that you have this API available in your console or ask your partner manager if you are eligible for this API.

Are there any callbacks available in the eventbrite api?

I would like to update a meeting as more people RSVP for the meeting. Currently I do not see any place to enter a callback URL for when attendees RSVP.
Thanks.
Great suggestion!
Eventbrite does not currently allow a callback url or web hook to be configured, exposing this type of activity.
However, you might be able to build this kind of notification system by placing a tracking pixel (or some similar web asset) on the event's order confirmation page.
If you can detect the HTTP referrer information from the request, it could probably be used to detect the event_id and order_id (which are embedded in the order confirmation page's url path).
Let me know if that works - #RyanJ

Can we grant access to an app to post something on a page in facebook?

The scenario is I want to post some details on a facebook page created by me from my other app. So want to know how can we give access to app through access token means how can we get the access token for this?
Thank You
Regards
Yes, take a look at the following URL and the "Page Access Tokens" section for information on how to do obtain a token.
API - Obtain Page Token
Note, however, that there is a known issue when trying to use the links api point, if you intend to define your own link in the post.
Bug report
You'll probably want to use the feed API point instead. I've not actually managed to get this working yet though, and I'm awaiting feedback from FB themselves. I'll update you if/when I hear something useful back.
Good luck.
You can get the access_token for you page by enabling the manage_pages permission, and then calling the API endpoint: /me/accounts to get the access_token for all the pages you manage.
You can then use this access token to post to your page using the Graph API call: /{page_id}/feed

Resources