Cobrand authentication

I created a new developer account and I had a problem with authentication using the REST API.

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

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

the system answers:

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

Am I doing something wrong?

+4
source share
3 answers

I am testing the API with Postman and apparently I need to send parameters using x-www-form-urlencodedit to make it work. Using the default form-datawill result in the above error.

enter image description here

+1
source

In my case, this was resolved by changing the content type according to 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
+1
source

Typically, this error occurs if you did not specify the input parameter name correctly; while in the code mentioned above I could see that both of them are true. I would advise you, please double check the name of the input parameter (case sensitive), and also correctly. And just mention that you should send it as two different parameters, that is, "cobrandLogin" and cobrandPassword.

0
source

All Articles