Coder Social home page Coder Social logo

cronofy-ruby's People

Contributors

adambird avatar adamwhittingham avatar agustin-peluffo avatar andrewseward avatar colbeanz avatar cronofymatt avatar dinclas avatar eparreno avatar gitter-badger avatar grajo avatar gshutler avatar haziba avatar heel avatar jeopard avatar jeremyw avatar jonniecache avatar jstenhouse avatar kostissky avatar kr-mykyta avatar madhermit avatar nevett avatar stephenbinns avatar victor-cronofy avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

cronofy-ruby's Issues

Query slots not supported for real time scheduling

According to the Cronofy changelog, we should be able to specify query slots in the availability hash when calling real_time_scheduling on the Cronofy client. I took a look through the code and I see no reference to query_slots.

When will query slots be supported by this gem?

422 Unprocessable Entity

I'm getting this error

cronofy-0.14.0/lib/cronofy/errors.rb:93:in `raise_error': 422 Unprocessable Entity (Cronofy::InvalidRequestError)
	from /Users/emile/.rvm/gems/ruby-2.3.0@viewpoint/gems/cronofy-0.14.0/lib/cronofy/errors.rb:86:in `raise_if_error'
	from /Users/emile/.rvm/gems/ruby-2.3.0@viewpoint/gems/cronofy-0.14.0/lib/cronofy/client.rb:762:in `http_get'
	from /Users/emile/.rvm/gems/ruby-2.3.0@viewpoint/gems/cronofy-0.14.0/lib/cronofy/client.rb:756:in `get_page'
	from /Users/emile/.rvm/gems/ruby-2.3.0@viewpoint/gems/cronofy-0.14.0/lib/cronofy/client.rb:730:in `initialize'
	from /Users/emile/.rvm/gems/ruby-2.3.0@viewpoint/gems/cronofy-0.14.0/lib/cronofy/client.rb:196:in `new'
	from /Users/emile/.rvm/gems/ruby-2.3.0@viewpoint/gems/cronofy-0.14.0/lib/cronofy/client.rb:196:in `read_events'
	from ./us.rb:11:in `<main>'

when I run this script

require 'cronofy'

cronofy = Cronofy::Client.new(access_token: TOKEN)

cronofy.read_events(from: (Date.today - 365)).each{|event|
  puts event
}

oauth2 version end of life (EOL)

This gem depends on oauth2 version "~> 1.0", but version 1.4.x has reached EOL.

Installation produces the following warning:

Post-install message from oauth2:

You have installed oauth2 version 1.4.10, which is EOL.
No further support is anticipated for the 1.4.x series.

OAuth2 version 2 is released.
There are BREAKING changes, but most will not encounter them, and upgrading should be easy!

Please see:
• https://github.com/oauth-xx/oauth2#what-is-new-for-v20
• https://github.com/oauth-xx/oauth2/blob/master/CHANGELOG.md

Please upgrade, report issues, and support the project! Thanks, |7eter l-|. l3oling

Data centre parameter could be more explicit in README

Cronofy allows developers to specify which data center they wish to use when instantiating the client

In this section of the README.md, it's not quite explicit how you specify this.

cronofy-ruby/README.md

Lines 35 to 40 in 0e19e38

cronofy = Cronofy::Client.new(
client_id: 'CLIENT_ID',
client_secret: 'CLIENT_SECRET',
access_token: 'ACCESS_TOKEN',
refresh_token: 'REFRESH_TOKEN'
)

With a bit of digging I found the key data_centre with UK spelling which is slightly different from the general spelling used in the docs

Would it be possible to update the docs to make it more explicit about specifying the data center like the example below?

cronofy = Cronofy::Client.new(
  client_id:     'CLIENT_ID',
  client_secret: 'CLIENT_SECRET',
  access_token:  'ACCESS_TOKEN',
  refresh_token: 'REFRESH_TOKEN',
  data_centre:   'DATA_CENTER_REGION' # will use US by default
)

Cheers!

Push Notification

Hi, Everyone.
I am going to use Push Notification after booking an appointment by calling Cronofy API.
I can get the hook after notification channel. But I can't get the any hooks after booking an appointment.
How should I do?

Request for more documentation

Hello!

I am really enjoying working with the Cronofy service. I was wondering if there are plans to add more documentation (maybe in the README) for other usage cases like Smart Invites?

Thank you,
Edwin M. Mak

Automated testing in a Rails app with the Cronofy Client

I see there's a client_spec.rb that includes some fake data: https://github.com/cronofy/cronofy-ruby/blob/5410bef43afa2c48f5e27f3eb0f3960a30e766b1/spec/lib/cronofy/client_spec.rb

Does anyone have a good system for mocking the data returned from various Cronofy::Client methods? Or would anyone be interested in providing it in the gem itself? I'd prefer to avoid VCR/WebMock stubbed requests if possible (I'd like to stub the methods themselves, e.g. list_calendars), but I acknowledge that may not be feasible here.

Thanks!

Cronofy generates massive log spam via Hashie

Our logs are absolutely overwhelmed with the following log message:

W, [2017-10-13T11:29:09.816974 #6930]  WARN -- : You are setting a key that conflicts with a built-in method Cronofy::PagedEventsResult#update defined at /home/deploy/Acadia/shared/bundle/ruby/2.3.0/gems/hashie-3.5.6/lib/hashie/mash.rb:209. This can cause unexpected behavior when accessing the key via as a property. You can still access the key via the #[] method.

Like 3 million times in 24 hours.

It makes the logs nearly useless and fills up the server disk space until the server crashes.

While this is due to a silly decision by Hashie, changes are needed in Cronofy to suppress it.

Cronofy needs to subclass Hashie::Mash and disable_warnings - hashie/hashie#394

Created event data not being returned

Hi there!
The API documentation says that the upsert_event endpoint returns the join URL for the related conferencing service for the calendar. But this client returns nil instead of the received response.

Would it be possible to change that? If not, which would be the right way to retrieve that data?

Thanks! ❤️

Cronofy::CredentialsMissingError on availability

When trying to run the availability query on a client without having an access_token set, I am getting the following error:

cronofy-0.37.3/lib/cronofy/client.rb:1789:in `access_token!': No credentials supplied (Cronofy::CredentialsMissingError)

I believe this is due to the fact of that endpoint calling .post on line 1802 which want to use the access_token to make the request. The api docs for availability require the API_KEY or client_secret rather than a user's access_token

When I change line 847 from

response = post("/v1/availability", options)

to

response = wrapped_request { api_key!.post("/v1/availability", json_request_args(options)) }

I get the expected response.

I am happy to make the necessary updates to add this to the repo unless I am doing something incorrect in my setup.

Upgrade Hashie

Hashie 4.x is available but the gem currently uses Hashie 3.x, could we upgrade it? It's causing conflicts in our Gemfile :(

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.