# VerityReputation.ContentApi

All URIs are relative to *http://springserver.cfapps.io/verity/core*

Method | HTTP request | Description
------------- | ------------- | -------------
[**createContent**](ContentApi.md#createContent) | **POST** /content | create Content
[**getContent**](ContentApi.md#getContent) | **GET** /content/{uuid} | get content
[**getContentReputation**](ContentApi.md#getContentReputation) | **GET** /content/{uuid}/reputation/{communityid}/{valuetypeid}/{reputationtype} | get content reputation
[**updateContent**](ContentApi.md#updateContent) | **PUT** /content | update Content


<a name="createContent"></a>
# **createContent**
> Content createContent(opts)

create Content

### Example
```javascript
var VerityReputation = require('verity_reputation');

var apiInstance = new VerityReputation.ContentApi();

var opts = { 
  'body': new VerityReputation.Content() // Content | 
};

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

### Parameters

Name | Type | Description  | Notes
------------- | ------------- | ------------- | -------------
 **body** | [**Content**](Content.md)|  | [optional] 

### Return type

[**Content**](Content.md)

### Authorization

No authorization required

### HTTP request headers

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

<a name="getContent"></a>
# **getContent**
> Content getContent(uuid)

get content

### Example
```javascript
var VerityReputation = require('verity_reputation');

var apiInstance = new VerityReputation.ContentApi();

var uuid = "uuid_example"; // String | 


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

### Parameters

Name | Type | Description  | Notes
------------- | ------------- | ------------- | -------------
 **uuid** | **String**|  | 

### Return type

[**Content**](Content.md)

### Authorization

No authorization required

### HTTP request headers

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

<a name="getContentReputation"></a>
# **getContentReputation**
> &#39;Number&#39; getContentReputation(uuid, communityid, valuetypeid, reputationtype, opts)

get content reputation

Gets the reputation score for a piece of content or other non-actor object.

### Example
```javascript
var VerityReputation = require('verity_reputation');

var apiInstance = new VerityReputation.ContentApi();

var uuid = "uuid_example"; // String | 

var communityid = "communityid_example"; // String | 

var valuetypeid = "valuetypeid_example"; // String | 

var reputationtype = "reputationtype_example"; // String | 

var opts = { 
  'body': new VerityReputation.ReputationRequest() // ReputationRequest | 
};

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

### Parameters

Name | Type | Description  | Notes
------------- | ------------- | ------------- | -------------
 **uuid** | **String**|  | 
 **communityid** | **String**|  | 
 **valuetypeid** | **String**|  | 
 **reputationtype** | **String**|  | 
 **body** | [**ReputationRequest**](ReputationRequest.md)|  | [optional] 

### Return type

**&#39;Number&#39;**

### Authorization

No authorization required

### HTTP request headers

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

<a name="updateContent"></a>
# **updateContent**
> updateContent(opts)

update Content

### Example
```javascript
var VerityReputation = require('verity_reputation');

var apiInstance = new VerityReputation.ContentApi();

var opts = { 
  'body': new VerityReputation.Content() // Content | 
};

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

### Parameters

Name | Type | Description  | Notes
------------- | ------------- | ------------- | -------------
 **body** | [**Content**](Content.md)|  | [optional] 

### Return type

null (empty response body)

### Authorization

No authorization required

### HTTP request headers

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

