ruby_outlook | gem wrapper around the Mail Calendar | Application Framework library
kandi X-RAY | ruby_outlook Summary
kandi X-RAY | ruby_outlook Summary
A gem wrapper around the Mail, Calendar, and Contacts APIs.
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
- Make a HTTP request .
- Retrieves a single view
- Get messages for a user
- Get list of calendars
- Get a list of messages
- Get a list of contacts
- Get all events for a user
- Create a calendar
- Sends a message to the user .
- Creates an event
ruby_outlook Key Features
ruby_outlook Examples and Code Snippets
# method (string): The HTTP method to use for the API call.
# Must be 'GET', 'POST', 'PATCH', or 'DELETE'
# url (string): The URL to use for the API call. Must not contain
# the host. For example: '/api/v1.0/me/message
# Generates the login URL for the app.
def get_login_url
client = OAuth2::Client.new(CLIENT_ID,
CLIENT_SECRET,
:site => "https://login.microsoftonline.com",
# A valid access token retrieved via OAuth2
token = 'eyJ0eXAiOiJKV1QiLCJhbGciO...'
# Maximum 30 results per page.
view_size = 30
# Set the page from the query parameter.
page = 1
# Only retrieve display name.
fields = [
"DisplayName"
]
# Sort by disp
Community Discussions
Trending Discussions on ruby_outlook
QUESTION
I am trying create a event in calander,
Iam able get all the data like calander,contacts and emails by following below documentaion,
https://docs.microsoft.com/en-us/outlook/rest/ruby-tutorial,
But when try to create a event using ruby_outlook getting below error
...ANSWER
Answered 2020-Feb-18 at 12:08Your issue is that the token that you fetched was using the Microsoft graph API but now you are trying to create an even through the Outlook API. You cannot use a token
issued for Graph ("aud": "graph.microsoft.com")
against the Outlook endpoint. You need a token with "aud": "outlook.office.com"
.Better is use the graph API itself using the graph gem to create an event since you already have the token fetched from it.
To do that first create the
MicrosoftGraph
object
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install ruby_outlook
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page