apzuk3 / go-eventbrite Goto Github PK
View Code? Open in Web Editor NEWLicense: MIT License
License: MIT License
Hi
As a first try, I created a few lines of code to get info on an existing event.
event, err := clnt.EventGet(context.Background(), "<event>")
This seems to result always in an error: validator: (nil url.Values)
Because EventGet() effectively calls return result, c.getJSON(ctx, "/events/"+id, url.Values{}, &result)
And c.getJSON() calls c.get().
Inside the get() is a validator for url.Values{} (passed as apiReq):
if apiReq != nil {
if err := validate.Struct(apiReq); err != nil {
return nil, err
}
}
The empty value of url.Values{} is map[]
and not nil, so it is validated, but an empty map is invalid. Hence the error.
If I disable the validator in get() then the EventGet() works.
The client currently manually expands the venue, category, and subcategories. We also need the organizer. Can this be manual or be updated?
https://www.eventbrite.com/developer/v3/api_overview/pagination/
"continuation: A token to return to the server to get the next set of results (see “Continuated Responses” below)"
According to this reference, the API allows to paginate the response through the continuation
token. I've searched through your doc as well as the code, but didn't figure out how to pass that params to the api.
So I have to try to test some standard pagination parameters, and see that the event search api also accepts a page
query to do pagination. You can check out this url https://www.eventbriteapi.com/v3/events/search?q=taylor&page=3&token=<your_token>
.
So could you add that page
field to the EventSearchRequest
struct or guide me how to do pagination on that api?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.