Happy Business Starts Here

Valued Scholar

zuora official gem usage

Hi team, 

 

I am using zuora official gem "zuora_api" (https://connect.zuora.com/innovate)

however, when I create a zuora client with the following example code: zuora_client = Zuora::Login.new("username", "password", "endpoint")

I always get the error: NameError (uninitialized constant ClassName::Zuora):

how to solve it? and what is the "endpoint" should be in the above code (I am using sandbox)?

 

3 REPLIES 3
Zuora Staff

Re: zuora official gem usage

Hi yihaoye,

 

The documentation for that line appears to be out of date. I will take this under review to be updated. In the meantime the correct code would be the below:

 

zuora_client = ZuoraAPI::Login.new("username", "password","endpoint")

 

Thank you, 

Matthew Ingle

 

 

 

Valued Scholar

Re: zuora official gem usage

Hi Matthew,

 

What should I fill in "endpoint" field if I use sandbox or production? Thanks.

 

Valued Scholar

Re: zuora official gem usage

For sandbox, the endpoint should be "https://apisandbox.zuora.com/apps/services/a/85.0"