Socket
Book a DemoInstallSign in
Socket

microsoft-live-simple

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

microsoft-live-simple

0.1.4
bundlerRubygems
Version published
Maintainers
1
Created
Source

Build Status Code Climate Test Coverage Issue Count Gem Version

microsoft-live-simple

INSTALLATION

In your Gemfile:

gem 'microsoft-live-simple'

DESCRIPTION

A simple client to the Microsoft "Live" REST API.

Designed to worth with the OAuth2.0 tokens retrieved by https://github.com/jdrago999/omniauth-microsoft-live

RATIONALE

I couldn't find one that already existed.

SYNOPSIS

require 'microsoft-live'

MicrosoftLive.configure do |config|
  config.client_id = ENV['CLIENT_ID']
  config.client_secret = ENV['CLIENT_SECRET']
  config.redirect_uri = ENV['REDIRECT_URI']
end

client = MicrosoftLive::Client.new(
  access_token: '...',
  refresh_token: '...',
  expires_at: ...
)

# NOTE: Your token is automatically refreshed when the old one expires.

result = client.contacts
contacts = [ ]
loop do
  break unless result.items

  all_contacts += result.items
  result = result.next_page
end

# Contact can reference a user:
user = contacts.first.user

LICENSE

This software is released under the Apache License, version 2.0. A copy of the license is included with this software.

SEE ALSO

FAQs

Package last updated on 03 Mar 2016

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.