I'm working on a project where, I need to send emails with some predefined messages. Titanium Mobile offers sending email through Titanium.UI.EmailDilog. But this does not fit to my requirements. I need to send email without displaying a dialog to user. If anybody have a solution to this, please tell.
You cant send emails using native API's without user consent (on iOS or Android). The only way to do it is with the native dialog. I'm pretty sure this is in place because Apple doesnt want you spamming on behalf of the user. For android the answer is the same, at least with Titanium.
If you really want to do this you have two options as I see it, write a webservice that sends emails on your behalf, and let the mobile app call it. Or wrap a library such as SKPMTPMessage for iOS to send messages programmatically.
You cant do it on the device using Titanium Mobile, but you can try using Appcelerator Cloud Services (ACS) to send it. See Cloud.Email
What are your requirements exactly? Is it sending predefined (transactional?) email to the user's inbox or on behalf of the user to a 3rd party?
For a simple solution (for verify user e-mail, password reset, etc.) I'd say Parse. An example from Parse for sending Password Reset e-mails:
You can initiate password resets for users who have emails associated
with their account. To do this, send a POST request to
/1/requestPasswordReset endpoint with email in the body of the
request:
curl -X POST \
-H "X-Parse-Application-Id: ${APPLICATION_ID}" \
-H "X-Parse-REST-API-Key: ${REST_API_KEY}" \
-H "Content-Type: application/json" \
-d '{"email":"coolguy#iloveapps.com"}' \
https://api.parse.com/1/requestPasswordReset
source: Parse Documentation
For more custom transactional emails there is Mandrill (powered by Mailchimp)
Does any of that fit the bill?
Related
I finished to build my web app that is an chat bot that integrate with instagram chat. The intagration is working fine, now I'm trying to get approve from instagram to publish it.
I used the follow url to get user name after receive an chat in my webhook:
curl -X GET "https://graph.facebook.com/v14.0/instagram-scoped-user-id?fields=name,username,profile_pic,follower_count,is_user_follow_business,is_business_follow_user&access_token=page-access-token"
In my testes worked fine, and in docs say that I need permission "instagram_basic" to go to production.
My problem is that when I try to approve my application, I receive an erro:
"The use case of you app to this permission is invalid, or not necessary to main function of your app."
So what? They expect that my chat show the userid instead the user name on chatting between agent and user? WTF.
In search here in stack, I find:
How to get the instagram username from instagram messenger webhook_
The user #eljefedelrodeodeljefe said to use the exactly api that I'm using now.
Someone got approve for this? What's the trick or should I try use an different api?
Thank you.
At first sorry if my english is not perfect !
I need help to create a dashboard for my company where I am in internship about their data on youtube.
Basically i need the same KPI,metrics and graph that you can find in youtube studio statistics.
But there is the problem I set up a project on google cloud platform and use the youtube anlytics api V2. But i fail to authentificate when i use the sample code from youtube documentation. On developer.google.com it's perfect, working smoothly and the data I retrieve is good but when i need to use postman to call my API is completely the shit.
It said that I need an Oauth 2 key but i have it.
for example : curl
'https://youtubeanalytics.googleapis.com/v2/reports?dimensions=day&endDate=2022-07-04&ids=channel%3D%3DMINE&metrics=estimatedMinutesWatched&sort=day%2C&startDate=2022-01-01&key=[YOUR_API_KEY]'
--header 'Authorization: Bearer [YOUR_ACCESS_TOKEN]'
--header 'Accept: application/json'
--compressed
this code work on youtube documentation because I authentificate with the youtube channel of my company but i have the main account and a youtube channel link to it.
I think the problem is i need to create the project with the youtube channel but how can i do that ???
I search everywhere and didnt fint anything about it.
And with Postman what call i have to do ?
I'm not a pro but i work on google analytics and linkedin API and it was fine but here i just want to destroy my computer.
I already create the API key and the ID clients OAuth 2.0 replace everything i could on the request but nothing
Someone know what to do ?
Thanks for all your reply
I'm trying to generate alerts based on notifications from Taiga project management software (when a user creates a project for example). These alerts will arrive to a specific Rocket.chat channel.
For this I am using the incoming Rocketchat webhooks: https://docs.rocket.chat/administrator-guides/integrations/
So I created the incoming webhook and entered the data into Taiga:
Configuring the webhook in Taiga
Once all this is done I check that the message arrives at the destination correctly:
Example of a notification message
Indeed, the message is received but it doesn't show any information. When a user history, an issue or any modification that leads to an alert is created, it is received in rocketchat but it doesn't show any information (empty message).
Payload sended by Taiga to Rocketchat
Does anyone know why he won't show me any information?
Thank you very much in advance
Greetings.
Do you really want to post notifications to a Rocket Chat channel, when a taiga user created a project in taiga? I would not know, how you can do that. But, as far as I can see, your screenshot shows the configuration of a generic webhook in a project after that project has been created. Therefore, I hope it is sufficient to post notifications from that project to your Rocket Chat channel. Here is my answer for this case:
I observed a similar behavior. Using the generic webhook, I could only trigger empty posts in my Rocket Chat channel by clicking on "test" for that webhook.
However, the Rocket Chat API seems to be compatible with the Slack API, cf. https://github.com/RocketChat/Rocket.Chat/issues/1728#issuecomment-166669379.
In contrast to the generic webhook, the Slack plugin for taiga (https://github.com/taigaio/taiga-contrib-slack) worked out of the box (https://tree.taiga.io/support/contrib-plugins/slack-integration/).
Only my browser gave me some hassle, because it cached the taiga webpage and after installing the Slack plugin a simple page reload was not enough to display the "Plugins" entry in the "Admin" menu of the project. "Shift+reload" did the job. But apart from that standard issue, everything worked.
I am using Branch for redirecting users to their corresponding app store but also to track where the user comes from. However I can't find a way to put a trackable Branch link on Instagram or Facebook. It gets rejected not following 'Community Standard'.
So I am in this situation:
app.myapp.com => redirection accepted by Community Standard but no tracking link
app.myapp.com/zJQj4nY6fX?ref=trackingref => rejected by Commynity Standard.
The ref allows me to do the tracking.
Anyone has a suggestion ? I have also checked at Branch workaround but can't really understand what to do in the workaround.
Thank you for your help!
Sorry to hear about the issue with posting your link to Facebook. How are you sharing these links in Facebook? When sharing links to Facebook via their newsfeed, messaging features, etc they will block links if they determine the link violates Facebook's community guidelines, links can be flagged as spam and may be blocked from being posted if:
Facebook detects that the post includes a link to a malicious website
Attempts were made to post the same link multiple times or in multiple places
You will want to reach out to FB support to get your link unblocked https://www.facebook.com/help.
You also can set up monitoring for all your links using Facebook's Open Graph API. You can ping Facebook's Open Graph servers at regular intervals to check if the link has been blocked and immediately contact Facebook to resolve this issue.
curl -X POST \
-F "id={object-url OR object-id}" \
-F "scrape=true" \
-F "access_token={your access token}" \
"https://graph.facebook.com"
The API returns OG information for a valid link and fails if the link is blocked by Facebook.
If you are running ad campaigns, I would recommend using Branch's Universal Ads feature with FB Ads as Branch is a FB MMP and this should keep your links from being blocked.
https://docs.branch.io/deep-linked-ads/branch-universal-ads-mobile-tracking
https://docs.branch.io/deep-linked-ads/facebook-ads-overview/#facebook-ads-overview
Hope this helps!
I would like to post to Google+ throught their interactive post feature. How does the authentication works once you allowed the app to post to your timeline? They don't need an access token - are they setting a cookie instead?
I believe you might misunderstand how the interactive post publishes to the stream. The posting is entirely controlled by the user, it is not done programmatically via a REST API. The interactive post button does require a signed in user so you can also get an OAuth token back, but that is independent of the posting by the user.