{"id":13877959,"url":"https://github.com/microsoftgraph/msgraph-sdk-ruby","last_synced_at":"2025-05-15T10:06:25.221Z","repository":{"id":56883564,"uuid":"58564952","full_name":"microsoftgraph/msgraph-sdk-ruby","owner":"microsoftgraph","description":"Microsoft Graph Ruby client library for v1 APIs","archived":false,"fork":false,"pushed_at":"2025-05-12T09:49:08.000Z","size":48074,"stargazers_count":112,"open_issues_count":8,"forks_count":70,"subscribers_count":32,"default_branch":"main","last_synced_at":"2025-05-12T10:50:01.795Z","etag":null,"topics":["devxeng","microsoftgraph","ruby"],"latest_commit_sha":null,"homepage":"https://graph.microsoft.com","language":"Ruby","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/microsoftgraph.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":"CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":".github/CODEOWNERS","security":"SECURITY.md","support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2016-05-11T17:11:20.000Z","updated_at":"2025-05-12T09:49:12.000Z","dependencies_parsed_at":"2024-06-06T11:27:18.608Z","dependency_job_id":"905bcb56-0398-4d30-a974-5d60b3606f43","html_url":"https://github.com/microsoftgraph/msgraph-sdk-ruby","commit_stats":{"total_commits":86,"total_committers":22,"mean_commits":3.909090909090909,"dds":0.4767441860465116,"last_synced_commit":"d021dfdf5183bc79b8c9f71fe3dd55a02cfb4876"},"previous_names":[],"tags_count":14,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/microsoftgraph%2Fmsgraph-sdk-ruby","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/microsoftgraph%2Fmsgraph-sdk-ruby/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/microsoftgraph%2Fmsgraph-sdk-ruby/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/microsoftgraph%2Fmsgraph-sdk-ruby/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/microsoftgraph","download_url":"https://codeload.github.com/microsoftgraph/msgraph-sdk-ruby/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":254319718,"owners_count":22051072,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["devxeng","microsoftgraph","ruby"],"created_at":"2024-08-06T08:01:36.023Z","updated_at":"2025-05-15T10:06:20.190Z","avatar_url":"https://github.com/microsoftgraph.png","language":"Ruby","readme":"# Microsoft Graph SDK for Ruby\n\nIf you're using a version lower than 0.10.0 of this gem, please read this [post](https://github.com/microsoftgraph/msgraph-sdk-ruby/issues/69) for more information.\n\nGet started with the Microsoft Graph SDK for Ruby by integrating the [Microsoft Graph API](https://learn.microsoft.com/graph/overview) into your Ruby application!\n\n\u003e **Note:** this SDK allows you to build applications using the [v1.0](https://learn.microsoft.com/graph/use-the-api#version) of Microsoft Graph. If you want to try the latest Microsoft Graph APIs under beta, use our [beta SDK](https://github.com/microsoftgraph/msgraph-beta-sdk-ruby) instead.\n\u003e\n\u003e **Note:** the Microsoft Graph Ruby SDK is currently in Community Preview. During this period we're expecting breaking changes to happen to the SDK based on community's feedback. Checkout the [known limitations](https://github.com/microsoftgraph/msgraph-sdk-ruby-core/issues/1).\n\n## 1. Installation\n\nrun `gem install microsoft_graph` or include `gem microsoft_graph, \"~\u003e 0.22.2\"` in your gemfile.\n\n## 2. Getting started\n\n### 2.1 Register your application\n\nRegister your application by following the steps at [Register your app with the Microsoft Identity Platform](https://learn.microsoft.com/graph/auth-register-app-v2).\n\n### 2.2 Create an AuthenticationProvider object\n\nAn instance of the **MicrosoftGraphServiceClient** class handles building client. To create a new instance of this class, you need to provide an instance of **AuthenticationProvider**, which can authenticate requests to Microsoft Graph.\n\nFor an example of how to get an authentication provider, see [choose a Microsoft Graph authentication provider](https://learn.microsoft.com/graph/sdks/choose-authentication-providers?tabs=Ruby).\n\n\u003e Note: we are working to add the getting started information for Ruby to our public documentation, in the meantime the following sample should help you getting started.\n\n```Ruby\nrequire \"microsoft_kiota_authentication_oauth\"\nrequire \"microsoft_graph_core\"\n\ncontext = MicrosoftKiotaAuthenticationOAuth::ClientCredentialContext.new(\"\u003cthe tenant id from your app registration\u003e\", \"\u003cthe client id from your app registration\u003e\", \"\u003cthe client secret from your app registration\u003e\")\n\nauthentication_provider = MicrosoftGraphCore::Authentication::OAuthAuthenticationProvider.new(context, nil, [\"https://graph.microsoft.com/.default\"])\n```\n\n### 2.3 Get a Graph Service Client and Adapter object\n\nYou must get a **MicrosoftGraphServiceClient** object to make requests against the service.\n\n```ruby\nrequire \"microsoft_graph\"\n\nadapter = MicrosoftGraph::GraphRequestAdapter.new(authentication_provider)\nclient = MicrosoftGraph::GraphServiceClient.new(adapter)\n```\n\n## 3. Make requests against the service\n\nAfter you have a **MicrosoftGraphServiceClient** that is authenticated, you can begin making calls against the service. The requests against the service look like our [REST API](https://learn.microsoft.com/graph/api/overview?view=graph-rest-1.0).\n\n### 3.1 Get the user's drive\n\nTo retrieve the user's drive:\n\n```ruby\nresult = client.users_by_id('\u003cuser-id\u003e').get.resume\nputs \"Found User : \" + result.id\n```\n\n## 4. Getting results that span across multiple pages\n\nAutomatic paging is currently not supported with the Ruby SDK, we're working to enable this feature.\n\n## 5. Documentation\n\nFor more detailed documentation, see:\n\n* [Overview](https://learn.microsoft.com/graph/overview)\n* [Collections](https://learn.microsoft.com/graph/sdks/paging)\n* [Making requests](https://learn.microsoft.com/graph/sdks/create-requests)\n* [Known issues](https://github.com/MicrosoftGraph/msgraph-sdk-ruby/issues)\n* [Contributions](https://github.com/microsoftgraph/msgraph-sdk-ruby/blob/main/CONTRIBUTING.md)\n\n## 6. Issues\n\nFor known issues, see [issues](https://github.com/MicrosoftGraph/msgraph-sdk-ruby/issues).\n\n## 7. Contributions\n\nThe Microsoft Graph SDK is open for contribution. To contribute to this project, see [Contributing](https://github.com/microsoftgraph/msgraph-sdk-ruby/blob/main/CONTRIBUTING.md).\n\n## 8. License\n\nCopyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the [MIT license](LICENSE).\n\n## 9. Third-party notices\n\n[Third-party notices](THIRD%20PARTY%20NOTICES)\n","funding_links":[],"categories":["Ruby"],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmicrosoftgraph%2Fmsgraph-sdk-ruby","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmicrosoftgraph%2Fmsgraph-sdk-ruby","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmicrosoftgraph%2Fmsgraph-sdk-ruby/lists"}