Enterprises List Call is not available in Android Management API how to implement it in my EMM Console? - android-management-api

It Says
"This feature is not generally available yet. Lists enterprises that are managed by an EMM. Only partial views are returned."
But i want the list of enterprise to be displayed in my emm console
for more details you can refer here:
https://developers.google.com/android/management/reference/rest/v1/enterprises/list
when i try the same call in the API Explorer it says:
{
"error": {
"code": 400,
"message": "Invalid request",
"status": "INVALID_ARGUMENT"
}
}

The enterprise.list API is part of the upcoming “Programmatic Enterprise Creation” feature, which is not yet generally available. The library includes the API calls needed to integrate this upcoming feature into your solution ahead of the feature’s release. Until the feature is released, the error message you are receiving is the expected response from this API.
The current process to create an enterprise requires keeping track of the enterprise id returned as part of the enterprise creation process. As such, there is no current mechanism available that will allow you to obtain a list of enterprises to display within your EMM console.

Related

Android Management API WebApp create/patch failed with HTTP error code 503

I have an issue with Android Management API when trying to create/patch a WebApp with an icon. If the imageData is not correct, the API returns a detailed error but if the imageData is encoded as expected, the API returns a HTTP 503 error code with message "The service is currently unavailable.". I thought this error would be transient but the REST calls seem to always fail. Any information could be helpful.
This error usually occurs when adding icons on AMAPI webApps. This issue is still pending in our Engineering’s backlog, Unfortunately, we have no shareable timeline or additional info.
If you want to stay up to date with the latest updates for Android enterprise, we suggest that you join the Android Management API mailing list to receive monthly updates and service advisories directly to your inbox.
The API has been fixed. We no longer have this problem.

I already linked API still getting Exception: "The project id used to call the GP Dev API has not been linked in the GP Dev Console."

Exception in Google Play Developer:
Team, I have already linked API access. Please refer to the attachment. I'm the owner of this app.
However, I still getting this exception - when calling this API to collect the google play reviews https://androidpublisher.googleapis.com/androidpublisher/v3/applications/com.dhanamanikandan.dhanarandomizer/reviews?access_token=<token>
{
"error": {
"code": 403,
"message": "The project id used to call the Google Play Developer API has not been linked in the Google Play Developer Console.",
"status": "PERMISSION_DENIED"
}
}
Please note it was working until March 2021. I just noticed today and got this error.
Note: I have already reviewed these questions but it didn't help me!
Error: 'The project id used to call the Google Play Developer API has not been linked in the Google Play Developer Console.'
Get android subscription status, failed with 403
Since the publisher made for web servers, you have to access via Web Application credentials. Follow these steps to get access token and use it for api calls via postman if you want. https://stackoverflow.com/a/53529534/1977021

Go YouTube API: What use instead of liveBroadcasts.control method to display slate?

Re golang YouTube API, I would like to know what calls to perform to make a slate image appear in the middle of a livestream. Reading the API documentation here, it's suggested that the "control" operation is used to achieve this, however, this operation is not supported by the API in the latest version. I did find this functionality in a prior version (v0.3.2); why would this have been removed and what is the replacement ?
Cheers,
Saxon
The API behavior you're experiencing is documented officially, as per this excerpt from the official specification of the liveBroadcasts.control API endpoint:
Note: The liveBroadcasts.control method has been deprecated and will stop working on or after 1 October 2020. After that date, all calls to this method will return a forbidden (403) error, and the method will later be completely removed.
Clients can still implement their own slating by adding an overlay to the video sent to YouTube’s ingestion servers. See deprecation announcement.
There's nothing you can do about that, but only to file a feature request directly to Google in the attempt to make the company reinstate the feature that it retracted from the current API.
In my opinion (which is based on the experience of several years of monitoring the SO tags youtube-api, youtube-data-api and youtube-livestreaming-api), waiting for Google to respond to you here on SO is waste of time. Just do what I already recommended you to do in my comments posted under your question above: reach out directly to Google (through the company's official issue tracker site) for to obtain official accounts from the company's staff.

Better way to fix "Out of call volume quota. Quota will be replenished in 5.21:26" in LUIS

I have created a LUIS bot application which is not working since last 4 days.I am getting the below error
"sorry my bot code is having an issue."
I trouble shoot the LUIS end point URL in browser i got the below response
{ "statusCode": 403, "message": "Out of call volume quota. Quota will be replenished in 5.21:26:15." }.
I am not sure why am i getting this error and do we have any other way to get this working instead of waiting?
It appears that you have reached the limit on the authoring key.You can increase your endpoint limits by increasing from Free to Standard. Go to the cognitive services blade here. Then go to your Cognitive Services application. Then select Pricing Tier. Increase from Free to Standard. Please see here and here for more info.
If you have not configured a Cognitive Service, you can do that by going into Manage->Keys and Endpoints->Assign resource within your LUIS application.

Using MSAL in a machine-to-machine scenario as a CSP

I am trying to use the GraphAPI using the official nuget library (https://github.com/microsoftgraph/msgraph-sdk-dotnet). However, the authentication process is not trivial and not very well documented.
I am in a CSP partner in a machine-to-machine scenario, so there is no UI application with a redirect url where a user manually enter it's credentials to consent access. But it seems to be the unique scenario well documented or available in the samples I found... Even the official CSP documentation is not clear (https://developer.microsoft.com/en-us/graph/docs/concepts/auth_cloudsolutionprovider).
I previously used many other APIs in production (and TIP environment) as a CSP like MSOL, CrestAPI and AzureGraph, so all the configuration and registration of the application is not a problem.
Is it possible to use MSAL as a CSP in a machine-to-machine scenario? Is there any documentation or sample available for my use case?
UPDATE
I think I am on the good path.
First, I had to register my app on apps.dev.microsoft.com. My apps were previously registered on portal.azure.com. Looks like AzureAD and Graph had different requirements related to where applications must be registered.
Second, I use the sample here: https://github.com/Azure-Samples/active-directory-dotnet-daemon-v2 .
Third, I am able to call the Graph API when I provide my CSP TenantId. However, when I try to call the Graph API using the TenantId of one of the tenant I manage, I got a:
{ "error": {
"code": "Authorization_IdentityNotFound",
"message": "The identity of the calling application could not be established.",
"innerError": {
"request-id": "7cab3137-b3e7-4622-9123-e47f2c018c56",
"date": "2017-09-04T14:48:34"
} } }
(I cannot have the consent page in my use case so I tried to pre-consent my app for all consumers using: https://developer.microsoft.com/en-us/graph/docs/concepts/auth_cloudsolutionprovider)
You can use MSAL to perform the auth required for the Graph SDK. There are some code snippets of using the .NET Graph SDK with the MSAL, but your best bet is the Connect Sample that shows this in a working app.
For a complete guided sample of how to use MSAL and what the library does, checkout the MSAL .NET Desktop Sample.

Resources