# EduchatApi.MessageApi

All URIs are relative to *https://api.edu.chat*

Method | HTTP request | Description
------------- | ------------- | -------------
[**messageCreate**](MessageApi.md#messageCreate) | **POST** /v1/message/ | Paginated;
[**messageList**](MessageApi.md#messageList) | **GET** /v1/message/ | Paginated;
[**messagePartialUpdate**](MessageApi.md#messagePartialUpdate) | **PATCH** /v1/message/{id}/ | No documentation beyond REST Standards;
[**messageUpvoteCreate**](MessageApi.md#messageUpvoteCreate) | **POST** /v1/message/upvote/ | Paginated;
[**messageUpvoteList**](MessageApi.md#messageUpvoteList) | **GET** /v1/message/upvote/ | Paginated;


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

Paginated;

Paginated; Filter by Mandatory({chat}) and Optional( {parent} and { &#39;id&#39;             : [&#39;exact&#39;], &#39;created&#39;        : [&#39;gte&#39;], &#39;text&#39;           : [&#39;exact&#39;, &#39;icontains&#39;], &#39;user_id&#39;        : [&#39;exact&#39;], &#39;file__name&#39;     : [&#39;exact&#39;], } );

### Example
```javascript
var EduchatApi = require('educhat_api');

var apiInstance = new EduchatApi.MessageApi();

var opts = { 
  'data': new EduchatApi.Data7() // Data7 | 
};

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

### Parameters

Name | Type | Description  | Notes
------------- | ------------- | ------------- | -------------
 **data** | [**Data7**](Data7.md)|  | [optional] 

### Return type

[**InlineResponse2011**](InlineResponse2011.md)

### Authorization

No authorization required

### HTTP request headers

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

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

Paginated;

Paginated; Filter by Mandatory({chat}) and Optional( {parent} and { &#39;id&#39;             : [&#39;exact&#39;], &#39;created&#39;        : [&#39;gte&#39;], &#39;text&#39;           : [&#39;exact&#39;, &#39;icontains&#39;], &#39;user_id&#39;        : [&#39;exact&#39;], &#39;file__name&#39;     : [&#39;exact&#39;], } );

### Example
```javascript
var EduchatApi = require('educhat_api');

var apiInstance = new EduchatApi.MessageApi();

var opts = { 
  'limit': 56, // Number | Number of results to return per page.
  'offset': 56, // Number | The initial index from which to return the results.
  'id': "id_example", // String | 
  'createdGte': "createdGte_example", // String | 
  'text': "text_example", // String | 
  'textIcontains': "textIcontains_example", // String | 
  'userId': "userId_example", // String | 
  'fileName': "fileName_example" // String | 
};

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

### Parameters

Name | Type | Description  | Notes
------------- | ------------- | ------------- | -------------
 **limit** | **Number**| Number of results to return per page. | [optional] 
 **offset** | **Number**| The initial index from which to return the results. | [optional] 
 **id** | **String**|  | [optional] 
 **createdGte** | **String**|  | [optional] 
 **text** | **String**|  | [optional] 
 **textIcontains** | **String**|  | [optional] 
 **userId** | **String**|  | [optional] 
 **fileName** | **String**|  | [optional] 

### Return type

[**InlineResponse2011**](InlineResponse2011.md)

### Authorization

No authorization required

### HTTP request headers

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

<a name="messagePartialUpdate"></a>
# **messagePartialUpdate**
> InlineResponse2011 messagePartialUpdate(id, opts)

No documentation beyond REST Standards;

No documentation beyond REST Standards;

### Example
```javascript
var EduchatApi = require('educhat_api');

var apiInstance = new EduchatApi.MessageApi();

var id = "id_example"; // String | 

var opts = { 
  'data': new EduchatApi.Data9() // Data9 | 
};

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

### Parameters

Name | Type | Description  | Notes
------------- | ------------- | ------------- | -------------
 **id** | **String**|  | 
 **data** | [**Data9**](Data9.md)|  | [optional] 

### Return type

[**InlineResponse2011**](InlineResponse2011.md)

### Authorization

No authorization required

### HTTP request headers

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

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

Paginated;

Paginated; filter by {message};

### Example
```javascript
var EduchatApi = require('educhat_api');

var apiInstance = new EduchatApi.MessageApi();

var opts = { 
  'data': new EduchatApi.Data8() // Data8 | 
};

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

### Parameters

Name | Type | Description  | Notes
------------- | ------------- | ------------- | -------------
 **data** | [**Data8**](Data8.md)|  | [optional] 

### Return type

[**InlineResponse2011**](InlineResponse2011.md)

### Authorization

No authorization required

### HTTP request headers

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

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

Paginated;

Paginated; filter by {message};

### Example
```javascript
var EduchatApi = require('educhat_api');

var apiInstance = new EduchatApi.MessageApi();

var opts = { 
  'limit': 56, // Number | Number of results to return per page.
  'offset': 56, // Number | The initial index from which to return the results.
  'id': "id_example", // String | 
  'firstName': "firstName_example", // String | 
  'firstNameIcontains': "firstNameIcontains_example", // String | 
  'lastName': "lastName_example", // String | 
  'lastNameIcontains': "lastNameIcontains_example" // String | 
};

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

### Parameters

Name | Type | Description  | Notes
------------- | ------------- | ------------- | -------------
 **limit** | **Number**| Number of results to return per page. | [optional] 
 **offset** | **Number**| The initial index from which to return the results. | [optional] 
 **id** | **String**|  | [optional] 
 **firstName** | **String**|  | [optional] 
 **firstNameIcontains** | **String**|  | [optional] 
 **lastName** | **String**|  | [optional] 
 **lastNameIcontains** | **String**|  | [optional] 

### Return type

[**InlineResponse2011**](InlineResponse2011.md)

### Authorization

No authorization required

### HTTP request headers

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

