Package com.mypurecloud.sdk.v2.api
Class GeolocationApi
java.lang.Object
com.mypurecloud.sdk.v2.api.GeolocationApi
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGet a organization's GeolocationSettingsGet a organization's GeolocationSettingsgetGeolocationsSettings(ApiRequest<Void> request) Get a organization's GeolocationSettingsGet a organization's GeolocationSettingsGet a user's GeolocationgetUserGeolocation(ApiRequest<Void> request) Get a user's GeolocationgetUserGeolocation(String userId, String clientId) Get a user's GeolocationgetUserGeolocationWithHttpInfo(String userId, String clientId) Get a user's GeolocationPatch a organization's GeolocationSettingsPatch a organization's GeolocationSettingsPatch a organization's GeolocationSettingsPatch a organization's GeolocationSettingsPatch a user's Geolocation The geolocation object can be patched one of three ways.patchUserGeolocation(ApiRequest<Geolocation> request) Patch a user's Geolocation The geolocation object can be patched one of three ways.patchUserGeolocation(String userId, String clientId, Geolocation body) Patch a user's Geolocation The geolocation object can be patched one of three ways.patchUserGeolocationWithHttpInfo(String userId, String clientId, Geolocation body) Patch a user's Geolocation The geolocation object can be patched one of three ways.
-
Constructor Details
-
GeolocationApi
public GeolocationApi() -
GeolocationApi
-
-
Method Details
-
getGeolocationsSettings
Get a organization's GeolocationSettings- Returns:
- GeolocationSettings
- Throws:
ApiException- if the request fails on the serverIOException- if the request fails to be processed
-
getGeolocationsSettingsWithHttpInfo
Get a organization's GeolocationSettings- Returns:
- GeolocationSettings
- Throws:
IOException- if the request fails to be processed
-
getGeolocationsSettings
public GeolocationSettings getGeolocationsSettings(GetGeolocationsSettingsRequest request) throws IOException, ApiException Get a organization's GeolocationSettings- Parameters:
request- The request object- Returns:
- GeolocationSettings
- Throws:
ApiException- if the request fails on the serverIOException- if the request fails to be processed
-
getGeolocationsSettings
public ApiResponse<GeolocationSettings> getGeolocationsSettings(ApiRequest<Void> request) throws IOException Get a organization's GeolocationSettings- Parameters:
request- The request object- Returns:
- the response
- Throws:
IOException- if the request fails to be processed
-
getUserGeolocation
public Geolocation getUserGeolocation(String userId, String clientId) throws IOException, ApiException Get a user's Geolocation- Parameters:
userId- user Id (required)clientId- client Id (required)- Returns:
- Geolocation
- Throws:
ApiException- if the request fails on the serverIOException- if the request fails to be processed
-
getUserGeolocationWithHttpInfo
public ApiResponse<Geolocation> getUserGeolocationWithHttpInfo(String userId, String clientId) throws IOException Get a user's Geolocation- Parameters:
userId- user Id (required)clientId- client Id (required)- Returns:
- Geolocation
- Throws:
IOException- if the request fails to be processed
-
getUserGeolocation
public Geolocation getUserGeolocation(GetUserGeolocationRequest request) throws IOException, ApiException Get a user's Geolocation- Parameters:
request- The request object- Returns:
- Geolocation
- Throws:
ApiException- if the request fails on the serverIOException- if the request fails to be processed
-
getUserGeolocation
Get a user's Geolocation- Parameters:
request- The request object- Returns:
- the response
- Throws:
IOException- if the request fails to be processed
-
patchGeolocationsSettings
public GeolocationSettings patchGeolocationsSettings(GeolocationSettings body) throws IOException, ApiException Patch a organization's GeolocationSettings- Parameters:
body- Geolocation settings (required)- Returns:
- GeolocationSettings
- Throws:
ApiException- if the request fails on the serverIOException- if the request fails to be processed
-
patchGeolocationsSettingsWithHttpInfo
public ApiResponse<GeolocationSettings> patchGeolocationsSettingsWithHttpInfo(GeolocationSettings body) throws IOException Patch a organization's GeolocationSettings- Parameters:
body- Geolocation settings (required)- Returns:
- GeolocationSettings
- Throws:
IOException- if the request fails to be processed
-
patchGeolocationsSettings
public GeolocationSettings patchGeolocationsSettings(PatchGeolocationsSettingsRequest request) throws IOException, ApiException Patch a organization's GeolocationSettings- Parameters:
request- The request object- Returns:
- GeolocationSettings
- Throws:
ApiException- if the request fails on the serverIOException- if the request fails to be processed
-
patchGeolocationsSettings
public ApiResponse<GeolocationSettings> patchGeolocationsSettings(ApiRequest<GeolocationSettings> request) throws IOException Patch a organization's GeolocationSettings- Parameters:
request- The request object- Returns:
- the response
- Throws:
IOException- if the request fails to be processed
-
patchUserGeolocation
public Geolocation patchUserGeolocation(String userId, String clientId, Geolocation body) throws IOException, ApiException Patch a user's Geolocation The geolocation object can be patched one of three ways. Option 1: Set the 'primary' property to true. This will set the client as the user's primary geolocation source. Option 2: Provide the 'latitude' and 'longitude' values. This will enqueue an asynchronous update of the 'city', 'region', and 'country', generating a notification. A subsequent GET operation will include the new values for 'city', 'region' and 'country'. Option 3: Provide the 'city', 'region', 'country' values. Option 1 can be combined with Option 2 or Option 3. For example, update the client as primary and provide latitude and longitude values.- Parameters:
userId- user Id (required)clientId- client Id (required)body- Geolocation (required)- Returns:
- Geolocation
- Throws:
ApiException- if the request fails on the serverIOException- if the request fails to be processed
-
patchUserGeolocationWithHttpInfo
public ApiResponse<Geolocation> patchUserGeolocationWithHttpInfo(String userId, String clientId, Geolocation body) throws IOException Patch a user's Geolocation The geolocation object can be patched one of three ways. Option 1: Set the 'primary' property to true. This will set the client as the user's primary geolocation source. Option 2: Provide the 'latitude' and 'longitude' values. This will enqueue an asynchronous update of the 'city', 'region', and 'country', generating a notification. A subsequent GET operation will include the new values for 'city', 'region' and 'country'. Option 3: Provide the 'city', 'region', 'country' values. Option 1 can be combined with Option 2 or Option 3. For example, update the client as primary and provide latitude and longitude values.- Parameters:
userId- user Id (required)clientId- client Id (required)body- Geolocation (required)- Returns:
- Geolocation
- Throws:
IOException- if the request fails to be processed
-
patchUserGeolocation
public Geolocation patchUserGeolocation(PatchUserGeolocationRequest request) throws IOException, ApiException Patch a user's Geolocation The geolocation object can be patched one of three ways. Option 1: Set the 'primary' property to true. This will set the client as the user's primary geolocation source. Option 2: Provide the 'latitude' and 'longitude' values. This will enqueue an asynchronous update of the 'city', 'region', and 'country', generating a notification. A subsequent GET operation will include the new values for 'city', 'region' and 'country'. Option 3: Provide the 'city', 'region', 'country' values. Option 1 can be combined with Option 2 or Option 3. For example, update the client as primary and provide latitude and longitude values.- Parameters:
request- The request object- Returns:
- Geolocation
- Throws:
ApiException- if the request fails on the serverIOException- if the request fails to be processed
-
patchUserGeolocation
public ApiResponse<Geolocation> patchUserGeolocation(ApiRequest<Geolocation> request) throws IOException Patch a user's Geolocation The geolocation object can be patched one of three ways. Option 1: Set the 'primary' property to true. This will set the client as the user's primary geolocation source. Option 2: Provide the 'latitude' and 'longitude' values. This will enqueue an asynchronous update of the 'city', 'region', and 'country', generating a notification. A subsequent GET operation will include the new values for 'city', 'region' and 'country'. Option 3: Provide the 'city', 'region', 'country' values. Option 1 can be combined with Option 2 or Option 3. For example, update the client as primary and provide latitude and longitude values.- Parameters:
request- The request object- Returns:
- the response
- Throws:
IOException- if the request fails to be processed
-