I want to send emails from Dreamfactory's Angular Application using PHP Mailgun API.
Big question for me is how can I set PHP's mailgun script into Dreamfactory as I'm new in Dreamfactory.
You should be able to add Mailgun as a remote web service API in DreamFactory. More info on how to set up a remote web service is here.
Just a (very late) followup on this in case other DreamFactory users are interested. DreamFactory has since added Mailgun support to the platform. You can learn more about it in the docs.
Related
I am referring to these documents
https://developers.google.com/apps-script/api/quickstart/php
https://developers.google.com/apps-script/api/how-tos/execute
for this implementation.
These document explains examples with Auth2.0. Since I am using GCP project for this implementation, i want to use service account of my GCP project for authorization.
I have used GCP service account to use SpreadSheet Apis and its works great.
After brain storming I have finally got answer that : service accounts are not allowed to access the Execution API.
I dont want to Auth method for this implementation and service account not supported by this API.
Question: Is there any other potential way to do this.
Try running the script via an API request with the proper API Client Library. The client should be authenticated in order to perform the request successfully. The Client Libraries support several methods for making authenticated calls to the Google APIs.
I am planning to use Google Cloud Messaging to send push-notifications from my web server whenever something is triggered from the server (PHP). As I read the Google Cloud Messaging just lately has the google-services.json which needed to be moved to the app/ in the Android project. Now, from the tutorial I've tried to look none are using the google-services.json yet. The documentation is pretty explanatory but I still haven't got the clear mind of setting PHP server to send from the server not the Android java program..
Would there be any link or reference related to the topic I asked?
Should I follow the tutorials out there without using the lastest API or what should I'd be recommended do?
Thank you, any help would really be appreciated as I also continue to find out.
You could follow the official GCM demo for the client side. For the server side, you could do your curl calls, taking into account the required headers and properties. If you look at the Java program that acts as a sender, it simply makes HTTP requests.
Older tutorials will unfortunately have differences, such as the URL to send to and the JSON content.
I tried searching these issues. Some sites say I need to do some stuff with php in order to make 3rd party server while others don't mention anything. some says it need JSON. Guide me please. PS I am a beginner and know java, XML,SQL only.
You should only need one server. The second server you are reading about may be the Google GCM cloud server? When I did a GCM project a few years ago, I had one server, it happened to be a App Engine instance. It generated events and sent them to Google via the GCM api and then onto onto the device. I don't remember it being that difficult.
I did have more than one server in the mix though, there were others that sent messages to the AppEngine server, but it was not required to send a GCM message.
Google Cloud Messaging (GCM) is a service that enables developers to send data from servers to both Android applications or Chrome apps and extensions.
So if you want to send data to the users of your App then you must have an interface or dashboard from where you can send some data (typically push notification) to the users of your app.
This dashboard (server from which you can send data) can be developed by using PHP or any script languages.
Now a though can come up in your mind:
"I am suppose to develop both the mobile app and the server then what
role does GCM play?"
Yes, GCM is playing a vital role indeed. The server we have to develop is just to design an interface so that you can type your message/notification and select the recipients. Rest of the part of (managing the queue, communication with the apps checking for authentication and all other stuffs will be done by mighty GCM )
In order to have an bird-eye overview you can take a look on this image collected form android hive
Server side coding is doesn't need you to be expert in php. So you can go through to this article. It helped me a lot to learn.
I am very new to Android programming and I am trying to make an app that enables users to send and receive messages. I already have a database and Apache set up. I've already implemented login, registration of users and adding friends to chat with.
Now in order to send and receive messages, do I use Google cloud messaging service? But GCM requires to set up the backend on Google cloud, right? I already have a working backend, so how can I use my existing database and Apache server to implement messaging? Should I write a PHP script to send and receive messages to/from Android devices?
But GCM requires to set up the backend on Google cloud right
No you don't need a backend on Google Cloud. What happens is that you use your own server (called "third-party server" in their docs), to send messages to Google's GCM server (using CCS protocol) which relays it on your behalf to the phone.
The same happens in reverse: the phone sends messages to Google's GCM server which relays it back to your server.
Here are the docs on getting you started:
Client implementation
Server implementation
I have built an ecommerce website in CakePHP and MySQL which takes orders and stores them in db. I've been told that I need to create a web service for sending notification to desktop/via email which would alert us of any order given instantly and would also provide us with order details. Do i need to study up on web services, SOAP, GET POST etc. or can I do it with some easier method? What would be a secure and fast response way of receiving such a notification from the web application? Thanks in advance :)
A webservice would be useful the other way round. If a third-party entity wishes to access your website as a service without accessing HTML pages, yes in that case, creating a webservice on your end will be useful.
I recommend you for instance to see the RESTful webservice interface to stackoverflow/stackexchange itself to understand this concept: https://api.stackexchange.com/docs.
In your case, I can't see how webservices would be involved. If you just need to send emails from your website, it can be done directly with the PHP mail() function, or using a mailer like PHPMailer.
Desktop notifications are an entirely different matter, because you need a client software.
I haven't dug pretty far in that topic myself, but here are a few pointers:
A popular Desktop Notification software for MacOSX is Growl which has been unofficially ported to Windows: http://www.growlforwindows.com/gfw/
There is a PHP API to send messages to Growl clients: http://clickontyler.com/php-growl/.