# ps.module.MobileApi

All URIs are relative to */*

Method | HTTP request | Description
------------- | ------------- | -------------
[**apiVersionMobileContactsGet**](MobileApi.md#apiVersionMobileContactsGet) | **GET** /api/{version}/mobile/contacts |  (Auth)
[**apiVersionMobileFetchPost**](MobileApi.md#apiVersionMobileFetchPost) | **POST** /api/{version}/mobile/fetch |  (Auth)
[**apiVersionMobileRegistrationPost**](MobileApi.md#apiVersionMobileRegistrationPost) | **POST** /api/{version}/mobile/registration |  (Auth)
[**apiVersionMobileSendmessagePost**](MobileApi.md#apiVersionMobileSendmessagePost) | **POST** /api/{version}/mobile/sendmessage |  (Auth)

<a name="apiVersionMobileContactsGet"></a>
# **apiVersionMobileContactsGet**
> apiVersionMobileContactsGet(version, opts)

 (Auth)

### Example
```javascript
import ps.module from 'phonespeakv2_api';
let defaultClient = ps.module.ApiClient.instance;

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

let apiInstance = new ps.module.MobileApi();
let version = "version_example"; // String | 
let opts = { 
  'u': "u_example", // String | 
  'p': "p_example" // String | 
};
apiInstance.apiVersionMobileContactsGet(version, opts, (error, data, response) => {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully.');
  }
});
```

### Parameters

Name | Type | Description  | Notes
------------- | ------------- | ------------- | -------------
 **version** | **String**|  | 
 **u** | **String**|  | [optional] 
 **p** | **String**|  | [optional] 

### Return type

null (empty response body)

### Authorization

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

### HTTP request headers

 - **Content-Type**: Not defined
 - **Accept**: Not defined

<a name="apiVersionMobileFetchPost"></a>
# **apiVersionMobileFetchPost**
> apiVersionMobileFetchPost(version)

 (Auth)

### Example
```javascript
import ps.module from 'phonespeakv2_api';
let defaultClient = ps.module.ApiClient.instance;

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

let apiInstance = new ps.module.MobileApi();
let version = "version_example"; // String | 

apiInstance.apiVersionMobileFetchPost(version, (error, data, response) => {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully.');
  }
});
```

### Parameters

Name | Type | Description  | Notes
------------- | ------------- | ------------- | -------------
 **version** | **String**|  | 
 **body** | [**PhoneSpeakServiceCoreCloudSoftPhoneFetchMessageRequest**](PhoneSpeakServiceCoreCloudSoftPhoneFetchMessageRequest.md)|  | [optional] 

### Return type

null (empty response body)

### Authorization

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

### HTTP request headers

 - **Content-Type**: audio/x-wav, text/plain, application/octet-stream, application/json-patch+json, application/json, text/json, application/_*+json, application/xml, text/xml, application/_*+xml
 - **Accept**: Not defined

<a name="apiVersionMobileRegistrationPost"></a>
# **apiVersionMobileRegistrationPost**
> apiVersionMobileRegistrationPost(version)

 (Auth)

### Example
```javascript
import ps.module from 'phonespeakv2_api';
let defaultClient = ps.module.ApiClient.instance;

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

let apiInstance = new ps.module.MobileApi();
let version = "version_example"; // String | 

apiInstance.apiVersionMobileRegistrationPost(version, (error, data, response) => {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully.');
  }
});
```

### Parameters

Name | Type | Description  | Notes
------------- | ------------- | ------------- | -------------
 **version** | **String**|  | 
 **body** | [**PhoneSpeakServiceCoreFirebaseCreateDeviceTokenRequestModel**](PhoneSpeakServiceCoreFirebaseCreateDeviceTokenRequestModel.md)|  | [optional] 

### Return type

null (empty response body)

### Authorization

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

### HTTP request headers

 - **Content-Type**: audio/x-wav, text/plain, application/octet-stream, application/json-patch+json, application/json, text/json, application/_*+json, application/xml, text/xml, application/_*+xml
 - **Accept**: Not defined

<a name="apiVersionMobileSendmessagePost"></a>
# **apiVersionMobileSendmessagePost**
> apiVersionMobileSendmessagePost(version)

 (Auth)

### Example
```javascript
import ps.module from 'phonespeakv2_api';
let defaultClient = ps.module.ApiClient.instance;

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

let apiInstance = new ps.module.MobileApi();
let version = "version_example"; // String | 

apiInstance.apiVersionMobileSendmessagePost(version, (error, data, response) => {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully.');
  }
});
```

### Parameters

Name | Type | Description  | Notes
------------- | ------------- | ------------- | -------------
 **version** | **String**|  | 
 **body** | [**PhoneSpeakServiceCoreCloudSoftPhoneMessageRequest**](PhoneSpeakServiceCoreCloudSoftPhoneMessageRequest.md)|  | [optional] 

### Return type

null (empty response body)

### Authorization

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

### HTTP request headers

 - **Content-Type**: audio/x-wav, text/plain, application/octet-stream, application/json-patch+json, application/json, text/json, application/_*+json, application/xml, text/xml, application/_*+xml
 - **Accept**: Not defined

