Git Product home page Git Product logo

go-eventbrite's People

Contributors

apzuk3 avatar mikepc avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar

go-eventbrite's Issues

EventGet() always results in error

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.

Pagination for event search API

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?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.