Yammer API exporting data gives error (401) Unauthorized - yammer

We are using the Yammer API to obtain statics for various of our clients.
We have the correct access token for all of them but for some we are receiving this error: The remote server returned an error: (401) Unauthorized..
The zip file generated does not get downloaded.
Example call: https://www.yammer.com/api/v1/export?model=Message&model=Group&model=Topic&model=UploadedFileVersion&model=DocumentVersion&access_token=xxxxxx-XkwP1lZFYYTF1NGrpFGmuw&include=csv&include_ens=false&since=2015-02-24T00%3A00%3A00%2B00%3A00
When pasting the link in a new tab a file not found is shown.
Does anyone have an idea what the problem may be or does know another way of getting the desired data?

Related

List of Gmail API Standard Error Responses

I'm trying to find a list of standard gmail api error codes. Is there DoubleClick search API here: Standard Error Responses.
How about for Gmail? And will the response codes change? If I see a specific error is returned for ex with 409, can I hardcode 409 in my application?
Thanks,
MT
It should be safe to hardcode them, They have not changed for a long time.
Here are some quota-related error codes
https://developers.google.com/gmail/api/v1/reference/quota

Picasa Web Albums REST API: 404 Unknown User issue

I'm trying to get the list of albums as it is written here: https://developers.google.com/picasa-web/docs/1.0/developers_guide_protocol#ListPhotos
GET https://picasaweb.google.com/data/feed/api/user/default
Authorization: Bearer MY_ACCESS_TOKEN_HERE
So, the problem is that I get "404 Unknown user" responce. Strange thing but when I make the same request with the same access token from another PC, I get the correct responce (200 OK and list of albums).
I didn't google anything useful except the similar issue which was on API for Python (like here: AuthSub: (404, 'Not Found', 'Unknown user.')). Did anyone face the same issue?
So, the problem was that Google Photos server handles the requests incorrectly, if these requests contain some wrong Cookie headers.
I say "incorrectly" because other Google APIs (like Drive, Contacts, etc.) didn't have this issue.
So, all that I had to do is to add flag INTERNET_FLAG_NO_COOKIES in InternetOpenUrl function:
InternetOpenUrl(NetHandle, PChar(Url), PChar(Header), Length(Header), INTERNET_FLAG_RELOAD or INTERNET_FLAG_NO_COOKIES, 0);
After that sending HTTP requests using InternetOpenUrl with the flag won't return this error anymore.

XMLHttpRequest: Network Error 0x80070005, Access is denied

We are getting this error sometimes or making continues REST API request to Yammer.
XMLHttpRequest: Network Error 0x80070005, Access is denied.
Any idea?
Ok so I got the reason for this error. When you continuously request or you hit the Yammer REST API limit mentioned in https://developer.yammer.com/restapi/ then usually this error comes.
so solution we followed is smartly handle your code by making request as per Yammer like putting some caching or limiting controls to page.
I hope this will solve your issue.

Error message when using google contact api

When I try to fetch contacts from gmail, I received this error message:
The page you have requested cannot be displayed. Another site was requesting access to your Google Account, but sent a malformed request. Please contact the site that you were trying to use when you received this message to inform them of the error. A detailed error message follows:
The site "http://url.com" has not been registered.
May I know how to rectify it? Thanks!
Have you tried registering the domain with Google's API?
docs:
https://developers.google.com/accounts/docs/RegistrationForWebAppsAuto#new
resgister url:
https://accounts.google.com/ManageDomains
Also if you are making calls from http and not https you may be seeing problems there too.

"The remote server returned an error: (401) Unauthorized." When trying to access Exchange via Webdav

I asked another question earlier about a 400 error. (http://stackoverflow.com/questions/6099557/the-remote-server-returned-an-error-400-bad-request-when-trying-to-access-e)
While waiting for responses, I tried a few other things and have now come across another unhelpful error. ("The remote server returned an error: (401) Unauthorized.").
I am trying to connect to http://mailserver/owa/. When I paste this URL into my browser, and type my credentials, I can get logged in just fine. When I try to connect with the same credentials through WebDav, I get the 401 error. How do the same credentials work one way, but not another way?
I tried using the authenticate method found here: http://blog.mbcharbonneau.com/2006/10/26/using-net-and-webdav-to-access-an-exchange-server/
I still get the same 401.
This seems like it should be so straightforward, yet all I can find out there are forums of people with the same problem. Nobody can provide and answer or working example. Has anyone actually ever been able to do this successfully before!?

Resources