Closed amitleshed closed 6 months ago
Hi @amitleshed Thank you for using the Ruby SDK and for reaching out
Have you tried something like this?
response = @client.me.calendar_view.get({
query_parameters: CalendarViewRequestBuilderGetQueryParameters.new {
start_date_time: start_time,
end_date_time: end_time,
orderby: 'start/dateTime'
}
})
Hey! thanks a lot, I have tried this, but still get a NoMethodError
(undefined method 'headers' for {:query_parameters=>#<MicrosoftGraph::Me::Calendar::CalendarView::CalendarViewRequestBuilder::CalendarViewRequestBuilderGetQueryParameters:0x000000011cf745f0 @start_date_time=2024-05-12 00:00:00 -0400, @end_date_time=2024-05-19 00:00:00 -0400, @orderby="start/dateTime">}:Hash):
Not sure what am I doing wrong. Are there any usage examples of the SDK?
ok, let's try this then
response = @client.me.calendar_view.get(RequestConfiguration.new {
query_parameters: CalendarViewRequestBuilderGetQueryParameters.new {
start_date_time: start_time,
end_date_time: end_time,
orderby: 'start/dateTime'
}
})
Request configuration comes from here
Thank you! that makes sense, I guess I missed this class.
That moves me forward a step, as now I'm encountering a MicrosoftGraph::Models::ODataErrorsODataError when I try to response.resume
.
Anyways, I suspect it might be an Azure permission issue, so I'll explore this. Really appreciate your response, I also plan to write a little example flow once I make this work. Thanks a lot!
Thanks for confirming! Closing.
Where can I find the docs for simple client api calls like such as:
The code I provided doesn't work, as it accepts a method "headers" so I assume I'm missing a usage of some class.
Here's how I initialized the client
All I really need is the ruby-sdk method documentation/examples which I can't find. Just found the rubyonrails example app but it doesn't use the sdk, only uses straight http calls to microsoft-graph.
Thanks.