We are trying to integrate the send grid api using the provided doc to setup the authentication and use webhoook to check the response.
We have set up the Event Webhook followed by the https://docs.sendgrid.com/for-developers/tracking-events/getting-started-event-webhook-security-features document.
We are using "Authorization Method" as OAuth-2.0 and provided the client id, client secret, token url and the http post url, handling all this by our class which we build in salesforce.
enter image description here
We are trying to hit the using the postman collect we are getting "204 no content"
and no response on webhook.
Related
I want to send mail using ms graph API from azure.
I know that first we need to authenticate azure app and generate a access token. And call send mail API to send mail.
I was able to generate access token.
But I am not able send mail with some message.
As graph API accept json we need to make our message in json.
How can I create a message with json and use it to send in post request using scala.
All the incoming request to api management will have a token in a header, before backend service is hit token has to be verified. To verify token a GET tokenVallidationApi is to be hit and the response will tell us whether the token is valid or not. If the response exists for token validation , we have to take out few entries from response and enrich the body/header to hit the backend api. I am very new to api management tool and just figuring out how can we achieve this with azure api management?
This is possible. You would have to implement your policies like something below
1. Validate Token
For this, you would first call the validation endpoint using send-request. You could also implement caching using value caching policies for multiple requests.
The doc also highlights how you can extract value from the response body.
2. Transform Body & Headers
For headers, you would use the set-header policy and for the body, you would use the set-body policy.
I'm working with Trestle which is real estate MLS service to get property data etc. I have followed their WebApi docs but I'm getting this error whenever I hit their api it looks like their server thinks that request is from some BOT. Even they recommend using Postman to test api:
Its been 3 days and still cant find any fix. Any help?
You do not seem to be following this documentation correctly.
https://docs-trestle.corelogic.com/GettingStarted/WebAPI
At the moment you are entering the token URL (https://api-prod.corelogic.com/trestle/oidc/connect/token) in the main Postman request URL field. The documentation states that you should use the Get New Access Token button on the Authorization tab of a request. You are entering the token URL in the main Postman request URL field.
This is a default flow for oAuth 2.0 requests in Postman.
https://learning.postman.com/docs/postman/sending-api-requests/authorization/#oauth-20
Example:
This could be your request to retrieve data:
https://api-prod.corelogic.com/trestle/odata/$metadata
On the Authorization tab you should select oAuth 2.0; select Get New Access Token and you will see a view which gives you the functionality you are looking for.
When successful, you will get a pop-up which you need to accept in order to use the API.
I am trying to send an email in my Angular app via SendGrids API.
I am posting to this URL: https://api.sendgrid.com/api/mail.send.json
With this raw data, to test;
{
"api_user":"MyUser",
"api_key":"MyPass"
}
But i get an error back, "Permission denied, wrong credentials"
If i however, set the same api_user and api_key as part of the URL, like so https://api.sendgrid.com/api/mail.send.json?api_user=MyUser&api_key=MyPass, it works.
But as i can have a fairly large portion of data to post (html email body), sending with URL's is not optimal, and it should be part of the post body.
The docs does not reveal much: https://sendgrid.com/docs/API_Reference/Web_API/mail.html
What am i missing?
When building a File Service App, how can my app send data back to Box? I've been reading about the callback urls to send data to my app, but I don't see how my app can send data back that will update user's Box account, like there is with the Content API.
The token you get from Box in the callback is valid for you to call APIs. Just use it in the header, and you'll be able to call APIs