Sha256: ec371061f2fd1d82d56d2df78b4159ab76b5c5f5ae01e37fdee47fd0c6c7fb64

Contents?: true

Size: 1.2 KB

Versions: 18

Compression:

Stored size: 1.2 KB

Contents

---
title: OrganizationApi
---

## PureCloud::OrganizationApi

All URIs are relative to *https://api.mypurecloud.com*

Method | HTTP request | Description
------------- | ------------- | -------------
|[**get_me**](OrganizationApi.html#get_me) | **GET** /api/v2/organizations/me | Get organization.|
{: class="table table-striped"}

<a name="get_me"></a>

## -[**Organization**](Organization.html) get_me

Get organization.



### Example
~~~ruby
# load the gem
require 'purecloud'
# setup authorization
@secret = ENV['PURECLOUD_SECRET']
@id = ENV['PURECLOUD_CLIENT_ID']
environment = "mypurecloud.com"

@authToken = PureCloud.authenticate_with_client_credentials @id, @secret, environment

PureCloud.configure do |config|
  config.access_token = @authToken
end

api_instance = PureCloud::OrganizationApi.new

begin
  #Get organization.
  result = api_instance.get_me
  p result
rescue PureCloud::ApiError => e
  puts "Exception when calling OrganizationApi->get_me: #{e}"
end
~~~

### Parameters
This endpoint does not need any parameter.
{: class="table table-striped"}


### Return type

[**Organization**](Organization.html)

### HTTP request headers

 - **Content-Type**: application/json
 - **Accept**: application/json



Version data entries

18 entries across 18 versions & 1 rubygems

Version Path
purecloud-0.54.1 doc_out/OrganizationApi.html.md
purecloud-0.53.1 doc_out/OrganizationApi.html.md
purecloud-0.52.1 doc_out/OrganizationApi.html.md
purecloud-0.51.1 doc_out/OrganizationApi.html.md
purecloud-0.50.1 doc_out/OrganizationApi.html.md
purecloud-0.49.1 doc_out/OrganizationApi.html.md
purecloud-0.48.1 doc_out/OrganizationApi.html.md
purecloud-0.47.1 doc_out/OrganizationApi.html.md
purecloud-0.46.1 doc_out/OrganizationApi.html.md
purecloud-0.45.1 doc_out/OrganizationApi.html.md
purecloud-0.44.1 doc_out/OrganizationApi.html.md
purecloud-0.43.1 doc_out/OrganizationApi.html.md
purecloud-0.42.1 doc_out/OrganizationApi.html.md
purecloud-0.41.1 doc_out/OrganizationApi.html.md
purecloud-0.40.1 doc_out/OrganizationApi.html.md
purecloud-0.39.1 doc_out/OrganizationApi.html.md
purecloud-0.38.1 doc_out/OrganizationApi.html.md
purecloud-0.37.1 doc_out/OrganizationApi.html.md