# Newsletter2GoApi(https:ApiNewsletter2goCom).CompanyApi

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

Method | HTTP request | Description
------------- | ------------- | -------------
[**getCompany**](CompanyApi.md#getCompany) | **GET** /companies | get the details of a company
[**updateCompany**](CompanyApi.md#updateCompany) | **PATCH** /companies/{id} | update the Company


<a name="getCompany"></a>
# **getCompany**
> CompanyResponse getCompany()

get the details of a company

get the details of a company

### Example
```javascript
var Newsletter2GoApi(https:ApiNewsletter2goCom) = require('newsletter2-go-api-(https://api/newsletter2go/com)');
var defaultClient = Newsletter2GoApi(https:ApiNewsletter2goCom).ApiClient.default;

// Configure OAuth2 access token for authorization: OAuth
var OAuth = defaultClient.authentications['OAuth'];
OAuth.accessToken = 'YOUR ACCESS TOKEN';

var apiInstance = new Newsletter2GoApi(https:ApiNewsletter2goCom).CompanyApi();

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
apiInstance.getCompany(callback);
```

### Parameters
This endpoint does not need any parameter.

### Return type

[**CompanyResponse**](CompanyResponse.md)

### Authorization

[OAuth](../README.md#OAuth)

### HTTP request headers

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

<a name="updateCompany"></a>
# **updateCompany**
> PatchResponse updateCompany(id, company)

update the Company

update the Company

### Example
```javascript
var Newsletter2GoApi(https:ApiNewsletter2goCom) = require('newsletter2-go-api-(https://api/newsletter2go/com)');
var defaultClient = Newsletter2GoApi(https:ApiNewsletter2goCom).ApiClient.default;

// Configure OAuth2 access token for authorization: OAuth
var OAuth = defaultClient.authentications['OAuth'];
OAuth.accessToken = 'YOUR ACCESS TOKEN';

var apiInstance = new Newsletter2GoApi(https:ApiNewsletter2goCom).CompanyApi();

var id = "id_example"; // String | the id of the Company

var company = new Newsletter2GoApi(https:ApiNewsletter2goCom).CompanyPatch(); // CompanyPatch | the data to update


var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
apiInstance.updateCompany(id, company, callback);
```

### Parameters

Name | Type | Description  | Notes
------------- | ------------- | ------------- | -------------
 **id** | **String**| the id of the Company | 
 **company** | [**CompanyPatch**](CompanyPatch.md)| the data to update | 

### Return type

[**PatchResponse**](PatchResponse.md)

### Authorization

[OAuth](../README.md#OAuth)

### HTTP request headers

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

