Coming soon - Get a detailed view of why an account is flagged as spam!
view details

This post has been de-listed

It is no longer included in search results and normal feeds (front page, hot posts, subreddit posts, etc). It remains visible only via the author's post history.

1
Struggling to make an API call to Informatica Cloud. New to API calls in Apex in general.
Post Body

I'm currently trying to setup some API calls to Informatica Cloud, eventually pulling in data and pushing it to Salesforce objects. I'm pretty new to API calls though, and can't seem to figure it out. I was able to create a successful API call using Postman, as well as making a quick Python script and making a successful API call that way.

Right now, I'm just trying to set a POST call that does the login for Informatica. Once I figure that out, it'll be easy enough to setup the GET calls I need to pull data in. I have my attempted Salesforce call, as well as my successful Python script just to show what I've been trying to emulate. Also, just so there's more information, the response I get back is a JSON response.

In Apex, when I make the call, I just get a response back with "Error" and Status Code: 400.

Apex Callout: http://pastebin.com/rSCE7xFj#

Python Callout: http://pastebin.com/GyrKYfHU

Author
Account Strength
100%
Account Age
11 years
Verified Email
Yes
Verified Flair
No
Total Karma
5,160
Link Karma
2,165
Comment Karma
2,995
Profile updated: 4 days ago
Posts updated: 1 month ago

Subreddit

Post Details

We try to extract some basic information from the post title. This is not always successful or accurate, please use your best judgement and compare these values to the post title and body for confirmation.
Posted
9 years ago