# EDropinAccounts.EaProfileTagsApi

All URIs are relative to *https://edropin-test.appspot.com*

Method | HTTP request | Description
------------- | ------------- | -------------
[**listTagRequests**](EaProfileTagsApi.md#listTagRequests) | **GET** /profiles/{profileId}/profile-tags | Paginate over all tag requests for the profile
[**removeProfileTagRequest**](EaProfileTagsApi.md#removeProfileTagRequest) | **DELETE** /profile-tags/{profileTagId} | Remove a profile tag request
[**respondToProfileTagRequest**](EaProfileTagsApi.md#respondToProfileTagRequest) | **PUT** /profile-tags/{profileTagId} | Accept or decline a profile tag request
[**upsertProfileTagRequest**](EaProfileTagsApi.md#upsertProfileTagRequest) | **POST** /profiles/{profileId}/profile-tags | Request to tag a profile in an entity e.g. Event, Course, etc.


<a name="listTagRequests"></a>
# **listTagRequests**
> EaPagedTagRequest listTagRequests(profileId, , opts)

Paginate over all tag requests for the profile

### Example
```javascript
var EDropinAccounts = require('e_dropin_accounts');
var defaultClient = EDropinAccounts.ApiClient.instance;

// Configure API key authorization: Authorization
var Authorization = defaultClient.authentications['Authorization'];
Authorization.apiKey = 'YOUR API KEY';
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//Authorization.apiKeyPrefix = 'Token';

// Configure API key authorization: ClientKey
var ClientKey = defaultClient.authentications['ClientKey'];
ClientKey.apiKey = 'YOUR API KEY';
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//ClientKey.apiKeyPrefix = 'Token';

var apiInstance = new EDropinAccounts.EaProfileTagsApi();

var profileId = "profileId_example"; // String | Profile Id

var opts = { 
  'cursor': "cursor_example", // String | Start Cursor for query
  'limit': 20 // Number | Number of items returned
};

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

### Parameters

Name | Type | Description  | Notes
------------- | ------------- | ------------- | -------------
 **profileId** | **String**| Profile Id | 
 **cursor** | **String**| Start Cursor for query | [optional] 
 **limit** | **Number**| Number of items returned | [optional] [default to 20]

### Return type

[**EaPagedTagRequest**](EaPagedTagRequest.md)

### Authorization

[Authorization](../README.md#Authorization), [ClientKey](../README.md#ClientKey)

### HTTP request headers

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

<a name="removeProfileTagRequest"></a>
# **removeProfileTagRequest**
> EaSuccess removeProfileTagRequest(profileTagId)

Remove a profile tag request

### Example
```javascript
var EDropinAccounts = require('e_dropin_accounts');
var defaultClient = EDropinAccounts.ApiClient.instance;

// Configure API key authorization: Authorization
var Authorization = defaultClient.authentications['Authorization'];
Authorization.apiKey = 'YOUR API KEY';
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//Authorization.apiKeyPrefix = 'Token';

// Configure API key authorization: ClientKey
var ClientKey = defaultClient.authentications['ClientKey'];
ClientKey.apiKey = 'YOUR API KEY';
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//ClientKey.apiKeyPrefix = 'Token';

// Configure API key authorization: ServiceKey
var ServiceKey = defaultClient.authentications['ServiceKey'];
ServiceKey.apiKey = 'YOUR API KEY';
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//ServiceKey.apiKeyPrefix = 'Token';

var apiInstance = new EDropinAccounts.EaProfileTagsApi();

var profileTagId = "profileTagId_example"; // String | Profile Tag Id


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

### Parameters

Name | Type | Description  | Notes
------------- | ------------- | ------------- | -------------
 **profileTagId** | **String**| Profile Tag Id | 

### Return type

[**EaSuccess**](EaSuccess.md)

### Authorization

[Authorization](../README.md#Authorization), [ClientKey](../README.md#ClientKey), [ServiceKey](../README.md#ServiceKey)

### HTTP request headers

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

<a name="respondToProfileTagRequest"></a>
# **respondToProfileTagRequest**
> EaTagRequest respondToProfileTagRequest(profileTagIdprofileTagProps)

Accept or decline a profile tag request

### Example
```javascript
var EDropinAccounts = require('e_dropin_accounts');
var defaultClient = EDropinAccounts.ApiClient.instance;

// Configure API key authorization: Authorization
var Authorization = defaultClient.authentications['Authorization'];
Authorization.apiKey = 'YOUR API KEY';
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//Authorization.apiKeyPrefix = 'Token';

// Configure API key authorization: ClientKey
var ClientKey = defaultClient.authentications['ClientKey'];
ClientKey.apiKey = 'YOUR API KEY';
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//ClientKey.apiKeyPrefix = 'Token';

var apiInstance = new EDropinAccounts.EaProfileTagsApi();

var profileTagId = "profileTagId_example"; // String | Profile Tag Id

var profileTagProps = new EDropinAccounts.EaTagRespond(); // EaTagRespond | Accept or decline tagging request


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

### Parameters

Name | Type | Description  | Notes
------------- | ------------- | ------------- | -------------
 **profileTagId** | **String**| Profile Tag Id | 
 **profileTagProps** | [**EaTagRespond**](EaTagRespond.md)| Accept or decline tagging request | 

### Return type

[**EaTagRequest**](EaTagRequest.md)

### Authorization

[Authorization](../README.md#Authorization), [ClientKey](../README.md#ClientKey)

### HTTP request headers

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

<a name="upsertProfileTagRequest"></a>
# **upsertProfileTagRequest**
> EaTagRequest upsertProfileTagRequest(profileId, profileTagProps)

Request to tag a profile in an entity e.g. Event, Course, etc.

### Example
```javascript
var EDropinAccounts = require('e_dropin_accounts');
var defaultClient = EDropinAccounts.ApiClient.instance;

// Configure API key authorization: Authorization
var Authorization = defaultClient.authentications['Authorization'];
Authorization.apiKey = 'YOUR API KEY';
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//Authorization.apiKeyPrefix = 'Token';

// Configure API key authorization: ClientKey
var ClientKey = defaultClient.authentications['ClientKey'];
ClientKey.apiKey = 'YOUR API KEY';
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//ClientKey.apiKeyPrefix = 'Token';

// Configure API key authorization: ServiceKey
var ServiceKey = defaultClient.authentications['ServiceKey'];
ServiceKey.apiKey = 'YOUR API KEY';
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//ServiceKey.apiKeyPrefix = 'Token';

var apiInstance = new EDropinAccounts.EaProfileTagsApi();

var profileId = "profileId_example"; // String | Profile Id

var profileTagProps = new EDropinAccounts.EaTagRequestCreate(); // EaTagRequestCreate | Model to create/update a profile tag request


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

### Parameters

Name | Type | Description  | Notes
------------- | ------------- | ------------- | -------------
 **profileId** | **String**| Profile Id | 
 **profileTagProps** | [**EaTagRequestCreate**](EaTagRequestCreate.md)| Model to create/update a profile tag request | 

### Return type

[**EaTagRequest**](EaTagRequest.md)

### Authorization

[Authorization](../README.md#Authorization), [ClientKey](../README.md#ClientKey), [ServiceKey](../README.md#ServiceKey)

### HTTP request headers

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

