4

I created a new developer account and I am having a problem authenticating with the REST API.

POST https://rest.developer.yodlee.com/services/srest/restserver/v1.0/authenticate/coblogin

{ cobrandLogin: 'sbCob*****',
  cobrandPassword: '**********' }

the system responds with:

{ Error: [ { errorDetail: 'Internal Core Error has occurred' } ] }

am I doing something wrong?

Alex Szabo
  • 3,274
  • 2
  • 18
  • 30

3 Answers3

1

I am testing the API with Postman and apparently I need to send the params with x-www-form-urlencoded to make it work. Using the default form-data lead to the above mentioned error.

enter image description here

mottalrd
  • 4,390
  • 5
  • 25
  • 31
1

In my case, this was solved by changing the content-type as per http://developer.yodlee.com/Aggregation_API/Aggregation_Services_Guide/Aggregation_REST_API_Reference

require 'rest-client'
module Yodlee

    def self.login_to_yodlee
        site = self.site_resource

        login_hash = {
            cobrandLogin: 'yourlogin',
            cobrandPassword: 'yourpassword'

        }
        begin
            response = site["/authenticate/coblogin"].post login_hash, :'content-type' => 'application/x-www-form-urlencoded'
            puts response
        rescue RestClient::ResourceNotFound => ex
            raise Exception.new(ex.response)
        rescue Exception => ex
            raise Exception.new(ex)
        end
    end

    def self.site_resource
        RestClient::Resource.new('https://rest.developer.yodlee.com/services/srest/restserver/v1.0')
    end

end

Yodlee.login_to_yodlee
JGutierrezC
  • 4,398
  • 5
  • 25
  • 42
0

Generally, this error comes when you do not provide the input parameter's name correctly; while in this mentioned code above I could see that both of them are correct. I'd suggest you to please double check the input parameter name(case sensitive) as well properly. And just to mention you should be sending it as two different parameters i.e., 'cobrandLogin' and cobrandPassword.

Apoorv Awasthi
  • 1,397
  • 1
  • 12
  • 20