Why am I getting Error 403: org_internal error in gmail authentication? - python-3.x

Currently, now I have been working to develop an app in which we have done code for Gmail integration. We are importing all Gmail emails into our database.
Our domain is like mytest and currently, I am testing with mayank#mytest.com which is a Gmail account.
So I am able to integrate mayank#test.com successfully and able to import all 50 mails into the database also.
But when I am trying with mayankprajapati21#gmail.com which is my other id, I am getting error like below.
Authorization Error
Error 403: org_internal
This client is restricted to users within its organization.
I am searching to find a solution for a day but not able to find it.
If any have past experience with Google API, pls let me know how to solve this issue.
Thanks.

Related

Getting API error occurred: account_inactive when using Slack Postmessage api to send message to slack user

I am building a slack app that would send messages to user. Recently I am getting an error which says "account_inactive". The slack documentation describes the following error as below
Authentication token is for a deleted user or workspace when using a bot token.
I tried sending a message to a deactivated slack user using "chat.postMessage" using a bot token "xoxb-token" and the API returns success all the time. It would be great if anyone can help me with what causes this error.
PS: I am not using BoltJS, I am using he JS SDK directly.
Sounds like your app has been uninstalled from the workspace. You can try calling auth.test to see if the token is still valid.
I've come across this error recently.
In my case, the cause was that when a user account is deactivated, some apps they've installed are also deactivated. If this is the case for you, a member with the permission to manage apps will need to reactivate it.
More information can be found in this Slack help article.

Amadeus API Error : You do not have permission to access this content

I'm new to Amadeus development.
I'm trying to develop an airline booking website. I'm using Amadeus Self service API's to get flights from searched term. Everything used to work fine, but from yesterday, if i call an api, I'm receiving error 403 forbidden, Invalid user. And I had a look into my Self Service workplace, It's throwing an error You do not have permission to access this content.
Any answers much appreciated.
Sample of my website is https://master.d3799dd2ybju3c.amplifyapp.com/.
Note: This is not the actual website, It's just a sample. For fetching airports i'm using my own data. It's not calling any backend api.
And once you please do reload the page again for good response.

Testing the Outlook REST API leads to suspended account issue

I'm trying to integrate Outlook Mail with a web app I'm working on. I need to do some tests with the API during the development. I'm using the node-outlook library in my NodeJS app. However, after sending a few test emails to both real and dummy addresses, I encountered the following error:
"REST request returned 530; body: {"error":{"code":"ErrorAccountSuspend","message":"Account suspended.
Follow the instructions in your Inbox to verify your account., WASCL
UserAction verdict is not None. Actual verdict is Suspend,
ShowTierUpgrade."}}"
It seems that Microsoft detected unusual activity with my account and suspends the account. I followed the directions and verified my account in a process that included mobile phone verification. It seemed the problem was resolved.
Now, I see that I can read the messages through the API, however I cannot use the API to send new emails or send draft emails. Also it seems I cannot send emails in the Outlook web app, too. I receive the same "suspended account" error.
One question is how can I solve this problem? Do any restrictions of "suspended account" error remain in place even after verifying the account and resolving the problem?
Another general question is, how can I do different tests with the Outlook API during development, without causing this "suspended account" error? I did much more tests with the Gmail API without any such problems.

Google Wallet API : Masked Wallet Error

I tried to do a Google Wallet Integration , I am able to successfully use the createWalletButton API. On clicking the button , I am asked to login to Google Wallets - which is successful as well. But the call to retreive the wallet information fails. The following error is displayed:
Uh-Oh. There was a problem. Sorry, Google Wallet couldn’t complete your request. Please return to the merchant to choose a different payment method, or try again later. Error: 62 (121217125033+0530)
The same error is also seen when trying to call the requestMaskedWallet API. Please advise.
A prompt response will be helpful and much appreciated.
I am getting the error problem in Google Sample App : Instant Buy
Downloaded Sample Instant Buy App
As you are trying to use the Web/JS API for Instant Buy the access to Sandbox for that is to be first requested from Google - http://getinstantbuy.withgoogle.com/ after you are given sandbox access and Merchant ID etc (which you may have seen is required to be in the JWTs), you will be able to use it.

Implementing Gmail auth in Flask

I'm working towards setting up Gmail authentication in a Flask app. There is this extension of Flask - but I can't find a clear idea as to how I'd go about using it to let people log into the app using their Gmail accounts. Any pointers? Much appreciated!
This might give you an idea
https://developers.google.com/gdata/faq#GmailAtomFeed
It says
"Does Gmail have a Data API?
No, but you can use http://gmail.google.com/support/bin/answer.py?answer=13465 Gmail's Atom feed with AuthSub or OAuth 1 to request read-only access to a user's unread messages. The scope should be set to https://mail.google.com/mail/feed/atom/. An example query would be:
GET https://mail.google.com/mail/feed/atom/"

Resources