Send off_blockchain transaction using bitcoin address (instant send) - coinbase-api

When you paste bitcoin address in Coinbase web UI, it recognizes when the recipient has the "instant send" feature turned on and suggests sending the transaction off chain. Is there such a feature in the API?
Right now if you send to an address of Coinbase user with "instant send" feature on, the API always sends it through the blockchain. Coinbase API docs don't have anything like off_blockchain param for send transactions. Is there a way to do this via API? Or perhaps an endpoint to get a user's email using the BTC address and then sending via that email?

you have a choice on the "to" parameter on the send transaction in coinbase api
if you use a crypto account address, then it goes on block chain and incurs fees
if you use an email address, it goes off block chain and there are no fees
this was only discovered over many hours of trial and error.
we have yet to test this on the coinbase pro api

Related

Not received emails even though the SendGrid activity shows Delivered

I have created Azure Logic App with Recurrence trigger and then used SendGrid connector for sending emails to multiple team members.
I didn’t receive any email even though the logic app actions executed successfully. After that I have checked SendGrid account email activity status, it is having “Delivered” status for the mentioned to email address in the SendGrid action.
Note: I have whitelisted the Outbound IP address of my logic app in SendGrid IP Address Management.
Twilio SendGrid developer evangelist here.
I don't know how Azure Logic Apps trigger emails with SendGrid, but if an email isn't being sent they shouldn't be getting the "Delivered" status.
You said that you have not set up Single Sender Verification or Domain Authentication. In order to send an email using SendGrid from the email address you provide, that email address should either have been verified as a Single Sender (which is mostly useful for testing) or it should be from a domain that you have authenticated with SendGrid.
Try setting one of those verification methods up and then try sending emails again.

How can I trigger an API request using SMS?

Lets say I have 2 mobile phone numbers: X for Agent, Y for Merchant.
I want to be able to have a system where an SMS is sent from X to Y, and this triggers an API request in the Merchant's server, for example a POST request with data that looks something like this:
{
"mobile_number": X,
"type": "agent",
"amount": "240.00"
}
Hopefully you get the idea. How can I do this? Are there any readily available SaaS services that offer these things? Thanks.
If Y is going to be the receiving number that triggers the API request you could:
Get an account at https://portal.ytel.com/user/signup where you can
obtain a programmable SMS enabled number.
Buy an SMS enabled number in the portal or the API. Under number management put in a Webhook url under SMS Settings->SMS Request Url and this Webhook will post to the url any inbound SMS sent to it.
Parse the Posted Parameters to the URL for whatever you need from
it.
Execute a cURL request to your API endpoint and send over:
{"mobile_number": X,"type": "agent","amount": "240.00" }
Or whatever else you want, I'm assuming it will be different depending on what's sent in the SMS

Mail GAE not sending but

I have a problem sending mail with JavaMail Service in GAE.
I did all the code in the documentation, i debug it online and it work fine, and it count the mail sended in the quota section the problem is, i didn't receive anything, and also checked with the account sender and it's the same there isn't any trace of mail sended. I tried this for some mails address and it's not working too.
Anyone had this problem yet? A solution to this?
The problem is that the mail sended as SPAM on gmail account.
Read doc: https://cloud.google.com/appengine/docs/java/mail/#Java_Authenticating_mail_DKIM
The email used to send the mails must be a member of the application. It can be the problem... It was with me.
https://cloud.google.com/appengine/docs/python/mail/
The link is about python but for sure that the same email rules apply to Java.
For security purposes, the sender address of a message must be one of the >following:
The Gmail or Google Apps Account of the user who is currently signed in
Any email address of the form anything#appname.appspotmail.com or >anything#appalias.appspotmail.com
Any email address listed in Email API Authorized Senders found in the App >Engine Settings page of the Developers Console

GMail API - Can I send email using the Service Account?

When I send an email using the GMail API, I get an Access Token for the user to whom the message is to be sent and then when sending the message, I put some value in the From Field.
But no matter what I put in the from field, the message in the email shows as From "Me" and is in the Sent mails as well as Inbox.
Is there a way, I could use the Service Account to send the email, so that it does not show up as From "Me" and is also not in the Sent Mails.
You cannot use a service account to impersonate a free gmail account. I spent a lot of time confirming this after reading a reply that was here before. Maybe it worked at some point, but it doesn't anymore.
There is no way to share / grant another user permission to access
your standard gmail account. So there is no way for you go delegate
the permissions for bob#mycompany.com to access bob#gmail.com.
and
you can impersonate G-Suite accounts but not Gmail accounts
These quotes are from Google's official C# Auth repo:
https://github.com/googleapis/google-api-dotnet-client/issues/1561
No. The Gmail API is for Gmail users and service accounts are just for doing auth to a real Gmail account, they don't have their own Gmail account, etc.
If you want to send the email from some service, you need some bulk-sending email service like at: https://cloud.google.com/compute/docs/tutorials/sending-mail/ or something you run yourself or from some other provider.
No, what you are looking for is a bulk email sending service. Checkout sendgrid , Amazon AWS SES, mandrill or if you want to stick with Google, this. You could of course run your own postfix server (although I'm assuming you were using gmail api for deliverability in the first place.

XMPP sendMessage does not send the message

I am using the XMPPservice's sendMessage method
to send a message to google mail but the message
can not be sent without any error log.
Thank
A common error source is that the receiver first has to accept an invite from the sender. Only then messages will be relayed to the receiver. Have you sent an invite and was it accepted?
If the Gmail recipient is using Google Apps (e.g. Google Apps for Business), the recipient domain must publish SRV records in their DNS to allow routing of the XMPP packets to the Gmail Chat backend. The vast majority of Google Apps domains will not likely have SRV records configured.
If the recipient is a #gmail.com / #googlemail.com account, then (as #schuppe suggest) the most likely cause of this issue is due to the fact that the recipient did not accept the invite from the sender.

Resources