Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Scheduling Page creation not supported? #417

Closed
drewlustro opened this issue May 30, 2023 · 2 comments
Closed

Scheduling Page creation not supported? #417

drewlustro opened this issue May 30, 2023 · 2 comments

Comments

@drewlustro
Copy link

Hello!

I'm trying to create a Schedule Page programmatically (smart integration).

I want to make a scheduling page that allows a guest to book time on a team's calendar (round robin availability). I don't necessarily want to create one programmatically, but it seems like the only way to do round robin.

The documentation has code samples as cURL request, but I don't see this functionality/endpoint supported by nylas-ruby ??

https://developer.nylas.com/docs/scheduler/schedule-editor/smart-integration/#post-example-request-create-a-scheduling-page

Imagined flow

  • guest lands on my rails endpoint
    • endpoint sends request to Nylas to generate a scheduling page for sales team calendar set [A, B, C]
  • rails redirects to Nylas hosted scheduling page
  • guest schedules time with person A, B, or C
    • webhook hits rails server, I make note of it
  • callback brings them back to my rails app

Do I have the mental model wrong?

There's no GUI on Nylas to create a round-robin scheduling page once.

If there was, I'd just create one scheduling page that I could embed for all guests.

@jimmypoulsen
Copy link

@drewlustro nylas-ruby does in fact support the manage/pages endpoint. Take a look here: https://github.com/nylas/nylas-ruby/blob/main/lib/nylas/scheduler.rb.

It's as simple as doing

nylas_client.scheduler.create(access_tokens: [<ACCESS_TOKEN>, <ANOTHER_ACCESS_TOKEN>])

@drewlustro
Copy link
Author

Thanks @jimmypoulsen!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants