- Mark as New
- Bookmark
- Subscribe
- Permalink
- Email to a Friend
- Report Inappropriate Content
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)?
Solved! Go to Solution.
Accepted Solutions
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Email to a Friend
- Report Inappropriate Content
For sandbox, the endpoint should be "https://apisandbox.zuora.com/apps/services/a/85.0"
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Email to a Friend
- Report Inappropriate Content
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
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Email to a Friend
- Report Inappropriate Content
Re: zuora official gem usage
Hi Matthew,
What should I fill in "endpoint" field if I use sandbox or production? Thanks.
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Email to a Friend
- Report Inappropriate Content
For sandbox, the endpoint should be "https://apisandbox.zuora.com/apps/services/a/85.0"