We have a Plesk panel for managing our mail accounts. We want to create new accounts by using the (new) REST json API in Plesk. The documentation is unclear about this: https://[host]:8443/api/v2 (swagger docs)
It is possible to create domains with a simple call though.
How can we add a new mailaccount and update the password of an existing mailaccount with de Plesk REST API (non-xml)?
It's not possible with the REST api.
Related
I am new to AZURE O365 portal, I have created some users in azure portal.
How can I create API in Azure portal to get the user details which I have already created in the portal and are they users enabled or disabled using PHP.
I tried: I have created application and I created secret Id in the portal, then what I have to do, to generate API for user list using php.
please help on it.
Thanks
Sandeep
Not sure if I undestand you correctly: you created some users on the azure portal and you want to get these users using PHP?
Azure has many APIs, they also have an API for getting these users, here is the specification and example code (not in php, but I think still easy to understand):
https://learn.microsoft.com/en-us/graph/api/user-list?view=graph-rest-1.0&tabs=http
Basically you can access that data using graphql client. There are many graphql libraries for php. But as I skimmed through the docs, you don't really need a library, just a way to create http requests, I recommend Guzzle.
Before you create that php code, I recommend to simply play with the API by using postman or other api client. If it works there, you can start to create the php code.
The code is basically a http POST request (or whatever is specified in the documentation). The request should contain your API tokens in the header, thats all. Data will be provided usually as JSON. Here are some examples how to use guzzle in php for graph.
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 need to configure Mailgun for sending emails in SuiteCRM using a Campaign. I have completed the domain registration and I now need to integrate Mailgun with SuiteCRM.
Where should I add the API key? Is it possible to integrate this API with SuiteCRM?
You should be able to get SMTP credentials from your Mailgun dashboard (Under "Domains") and use them for suiteCRM. This is what I'm doing; do you need more/different integration?
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.
I can't find any mention on how to do this with twitter api. I'd like to do it without buying this commercial software:
http://www.webdesigndev.com/photoshop/how-to-brand-your-tweets-with-your-url-and-why-you-should
I mean not just having my appname but putting any name I want at any time.
I think it's chosen when you create the application for the twitter API: http://dev.twitter.com/apps/new
Currently this can only be done if your application implements OAuth authentication to Twitter. In the past, non-OAuth apps were able to send a source parameter, but that has been discontinued for any new apps.
From Twitter's API FAQ
If you would like tweets from your
application to receive a source
parameter, please register an
application and implement OAuth
authentication. We will automatically
include your application as the source
for any tweets sent from your
application.
Also, check out this similar SO question.