seatsio / seatsio-ruby Goto Github PK
View Code? Open in Web Editor NEWthe official Seats.io Ruby client library
License: MIT License
the official Seats.io Ruby client library
License: MIT License
Would you please consider auto-generating release notes? It makes it substantially easier to review dependency upgrades on Github when paired with Dependabot.
Currently one must navigate to the repo and then manually compare the tags:
Looks like your README is not up to date?
Creating a chart and an event
require('seatsio')
client = Seatsio::Client.new("my-secret-key") # can be found on https://app.seats.io/settings
chart = client.charts.create
event = client.events.create(chart.key) # <--- leads to following error
!! #<ArgumentError: wrong number of arguments (given 1, expected 0)>
also i tried following versions, but none of them worked:
client.events.create(chartKey: chart.id, event_key: self.event_key)
!! #<ArgumentError: unknown keyword: chartKey>
>> client.events.create(chart_key: chart.id, event_key: self.event_key)
!! #<ArgumentError: unknown keyword: chart_key>
>> client.events.create(event_key: self.event_key)
!! #<Seatsio::Exception::SeatsioException: {"status":400,"messages":["#: required key [chartKey] not found"],"errors":[{"code":"GENERAL_ERROR","message":"#: required key [chartKey] not found"}],"warnings":[],"requestId":"123"}>
Running Ruby 3.0 or later, the Pagination::Cursor/#each
method becomes a problem.
line 33 in cursor.rb
I believe is the only place the issue is present, but trying to iterate over a collection of seats objects results in a tried to create Proc object without a block
error.
Hi,
first of all, thank you very much for providing a ruby gem for your API, this will save time for us, since we don't have to handle all the http stuff by our selfes!
Right now it looks pretty fine, the only thing which we are missing right now is to get a list of all objects, with extraData included in each object. As far as I saw there is no API call for this available?
Hi! I've been utilising the seatsio-ruby library to interact with the Seats API. In the gemspec the gem "rest-client" is listed as a development dependency
Line 26 in 1e5b657
It would be good if rest-client was moved to be a full dependency of the seatsio gem. It does also seem that the rest-client gem is unmaintained currently and might be worth considering migrating to a different HTTP client. rest-client/rest-client#764
When fetching a list of charts for a subaccount that does not have any created yet, the client returns NoMethodErrors for all routine enumerable methods. A request for all charts when there are none seems to result in nil rather than an empty collection.
Alternatively, Is there an easy way to quickly see if the account does have any charts created yet?
The example in the docs for the ruby client is wrong, since it shows the first two keys (event key and size) as named parameters/hash keys, but if you look at the code, they are just normal unnamed parameters.
I think the documentation should be updated accordingly.
client.events.book_best_available key: 'event1', number: 10, categories: ['balcony', 'stalls']
seatsio-ruby/lib/seatsio/events.rb
Line 78 in ca36c9c
Thanks!
When I retrieve the published version of chart, in the category list there is a boolean accessible
key. However, when updating a chart's categories this key is not permitted:
Seatsio::Exception::SeatsioException (
{"status": 400,
"messages": [
"#/categories/0: extraneous key [accessible] is not permitted",
"#/categories/1: extraneous key [accessible] is not permitted"],
"errors": [
{"code": "GENERAL_ERROR",
"message": "#/categories/0: extraneous key [accessible] is not permitted"},
{"code": "GENERAL_ERROR",
"message": "#/categories/1: extraneous key [accessible] is not permitted"}],
"warnings": [],
"requestId": "fee5171f-cc3f-4535-9deb-0bbbc5c06ca3"}
)
I am managing seat categories external to Seats.io and would love to be able to offer a handicap accessible option on my ticket categories.
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.