YouTube Reporting API Bulk Data Content Owner Reports - api

When I call YouTube Reporting API reportTypes.list (https://developers.google.com/youtube/reporting/v1/reference/rest/v1/reportTypes/list) method for the channel that I am the owner of, the only report types returned are for Channel Reports (https://developers.google.com/youtube/reporting/v1/reports/channel_reports). What do I need to do to get Content Owner Reports as well? If I need to have Content Owner ID what are the steps for setting it up?
Thank you!

Related

Instagram Business Discovery API: retrieve single media by ID

Is there any way to get data for a single media obtained with business discovery? Here's my use case:
I use business API to get media from certain users.
I save all the post data, including media ID, images, etc., to build a gallery.
Once in a while, some media URLs expire, and the gallery starts to show broken images, so I need a function that refreshes the posts that have expired images via API in order to get the new media URLs.
To do that, I need to access the single media. I tried with direct media ID
GET /{media-id}
But I got
Unsupported get request. Object with ID '17893828628657031' does not exist, cannot be loaded due to missing permissions, or does not support this operation.
I don't have direct access to media discovered with business discovery API.
Any suggestions?
It seems that I don't have direct access to media discovered with business discovery API.
Yes, that appears to be the case. In the endpoint documentation, in the section titled "Getting Basic Metrics on Media", it explicitly says:
You can use both nested requests and field expansion to get public fields for a Business or Creator Account's media objects. Note that this does not grant you permission to access media objects directly — performing a GET on any returned IG Media will fail due to insufficient permissions.
So I guess you could only make the original business discovery request again - and then update your data storage with the current URLs this returns. If the account added new media since your last request, you might need to paginate through the results, to find your specific older media item IDs in there again.

(ssg-wsg) Why is CorpPass ID required for Update/Delete course run with sessions API?

Does anyone know why is CorpPass Id a required field for "Update/Delete course run with sessions" API? Since this will be an NRIC, would it be a sensitive information to be used in the request body?
Referring to the API: https://developer.ssg-wsg.gov.sg/webapp/docs/product/6kYpfJEWVb7NyYVVHvUmHi/group/374zmR5D0tQeS87eA1hrLV/api/4i96CWAYWH6uGhkhGMZxHd/version/3egIPKn3WK27liSToemjDV
Based on the API page, I do not see where Corppass ID is being referenced. Do provide more details if you have a technical query for the API.
However, based on the description: API is only available to Corppass users - and if you are able to subscribe to it then you are a Corporate Developer. For this query, it would be more appropriate if you can reach out to their servicedesk for details instead: https://developer.ssg-wsg.gov.sg/webapp/faq?anchor=WhoCanIContactIfIHaveQuestionsAboutTheseAPIs

Acumatica API - Upload attachment to an Appointment detail record

I am trying to attach a file to an appointment detail record. I can successfully attach a file to an appointment using the URL
{{baseUrl}}/Appointment/MRO/006301-1/files/image.png
However, I am unable to determine the endpoint for appointment detail records. The Acumatica development guide does not provide any insight into related/nested records. As far as I can tell, the appointment detail record is not accessible via a direct endpoint, only with /Appointment/[uuid]?$expand=Details
What is the correct API endpoint for upload files to an appointment detail record?
It's my understanding that the Android application uses the API so there should be a matching endpoint.
If an Endpoint does not exists relative to the detail line your could try to define your own via the Web Service Endpoints screen in the Integrations module. You may need to define a screen for just the detail in order to get that endpoint established. Im not at all certain this is going to get you the end result you need but it may be worth a try.

REST APIs to fetch statistic api usage data from API Connect

This may look a dumb question to you. However, I am looking for a way to fetch API Connect internal data i.e. number of invocations of APIs exposed via API Connect , by which client etc. I know, there are individual dashboard/chart within API Connect. But, I want to build a explicit tool to monitor the same leveraging API Connect data.
is it at all possible ?
Thanks in advance
See the KC at https://www.ibm.com/support/knowledgecenter/SSMNED_5.0.0/com.ibm.apic.apionprem.doc/rapim_analytics_apieventrecordfields.html which will explain how to get the info you want.
Procedure
To obtain analytics data for a Catalog and API provider organization, issue the following call:
GET /v1/orgs/{orgId}/environments/{envId}/events
where
{orgId} is either the URL path segment or the ID of the API provider organization.
{envId} is either the URL path segment or the ID of the Catalog.
The following example shows a call that is issued from a browser and then shows all the event fields in the corresponding response. The call is issued to return two analytics events (limit=2), and includes a next parameter for requesting further events.
https://api-manager-server.company.com/v1/orgs/macs-shack/environments/sb/events?next&limit=2

Youtube Analytics API: Get Earnings report for individual channel which are not part of the content owner

I want to get the earnings related report for the individual channels which are not the part of Content Owner. But when I am adding the earnings related metrics, I am getting 401 - Insufficient permission to access this report. When removing the earnings metrics, it is working fine. I searched a lot for this and found out that, we can not fetch the earnings for individual channels which are not part of content owner but the result I get is of 2 years old. Is there any update regarding this? Or any other method, through which I can fetch the earnings related report for individual channels?
Please help me.
Thanks in advance
You should get a https://www.googleapis.com/auth/yt-analytics-monetary.readonly
scope,before accessing monetary (earnings) report.
You'll also need the client to give you an access token. From there you can get an access token and json_decode to get the refresh token which you can store in a database for offline use. Also set access type to offline.