Happy Business Starts Here

Highlighted
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)?

 

1 ACCEPTED SOLUTION

Accepted Solutions
Highlighted
Valued Scholar

Re: zuora official gem usage

3 REPLIES 3
Highlighted
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

 

 

 

Highlighted
Valued Scholar

Re: zuora official gem usage

Hi Matthew,

 

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

 

Highlighted
Valued Scholar

Re: zuora official gem usage