All URIs are relative to https://api.dtf.ru/v1.6
Method | HTTP request | Description |
---|---|---|
EntryCommentComplaint | POST /entry/comment/complaint | |
EntryComplaint | POST /entry/complaint | |
Locate | GET /locate | |
Search | GET /search |
InlineResponse20011 EntryCommentComplaint (Object commentId)
Жалоба на комментарий
using System;
using System.Diagnostics;
using Org.OpenAPITools.Api;
using Org.OpenAPITools.Client;
using Org.OpenAPITools.Model;
namespace Example
{
public class EntryCommentComplaintExample
{
public void main()
{
// Configure API key authorization: XDeviceToken
Configuration.Default.ApiKey.Add("X-Device-Token", "YOUR_API_KEY");
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// Configuration.Default.ApiKeyPrefix.Add("X-Device-Token", "Bearer");
var apiInstance = new OtherApi();
var commentId = 8.14; // Object | Id комментария (optional)
try
{
InlineResponse20011 result = apiInstance.EntryCommentComplaint(commentId);
Debug.WriteLine(result);
}
catch (Exception e)
{
Debug.Print("Exception when calling OtherApi.EntryCommentComplaint: " + e.Message );
}
}
}
}
Name | Type | Description | Notes |
---|---|---|---|
commentId | Object | Id комментария | [optional] |
- Content-Type: multipart/form-data
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
InlineResponse20011 EntryComplaint (Object contentId)
Жалоба на статью
using System;
using System.Diagnostics;
using Org.OpenAPITools.Api;
using Org.OpenAPITools.Client;
using Org.OpenAPITools.Model;
namespace Example
{
public class EntryComplaintExample
{
public void main()
{
// Configure API key authorization: XDeviceToken
Configuration.Default.ApiKey.Add("X-Device-Token", "YOUR_API_KEY");
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// Configuration.Default.ApiKeyPrefix.Add("X-Device-Token", "Bearer");
var apiInstance = new OtherApi();
var contentId = 8.14; // Object | Id статьи (optional)
try
{
InlineResponse20011 result = apiInstance.EntryComplaint(contentId);
Debug.WriteLine(result);
}
catch (Exception e)
{
Debug.Print("Exception when calling OtherApi.EntryComplaint: " + e.Message );
}
}
}
}
Name | Type | Description | Notes |
---|---|---|---|
contentId | Object | Id статьи | [optional] |
- Content-Type: multipart/form-data
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
InlineResponse20010 Locate (string url)
Получить контент по ссылке
using System;
using System.Diagnostics;
using Org.OpenAPITools.Api;
using Org.OpenAPITools.Client;
using Org.OpenAPITools.Model;
namespace Example
{
public class LocateExample
{
public void main()
{
var apiInstance = new OtherApi();
var url = https://dtf.ru/games/22946-legendy-dwarf-fortress-saga-o-padenii-kreposti-boutmerded; // string | Ссылка на страницу сайта
try
{
InlineResponse20010 result = apiInstance.Locate(url);
Debug.WriteLine(result);
}
catch (Exception e)
{
Debug.Print("Exception when calling OtherApi.Locate: " + e.Message );
}
}
}
}
Name | Type | Description | Notes |
---|---|---|---|
url | string | Ссылка на страницу сайта |
No authorization required
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
InlineResponse2001 Search (string query, string orderBy, int? page)
Поиск
using System;
using System.Diagnostics;
using Org.OpenAPITools.Api;
using Org.OpenAPITools.Client;
using Org.OpenAPITools.Model;
namespace Example
{
public class SearchExample
{
public void main()
{
var apiInstance = new OtherApi();
var query = apple; // string | Строка для поиска
var orderBy = relevant; // string | Сортировка: * `relevant` - По важности * `date` - По дате (optional)
var page = 1; // int? | (optional)
try
{
InlineResponse2001 result = apiInstance.Search(query, orderBy, page);
Debug.WriteLine(result);
}
catch (Exception e)
{
Debug.Print("Exception when calling OtherApi.Search: " + e.Message );
}
}
}
}
Name | Type | Description | Notes |
---|---|---|---|
query | string | Строка для поиска | |
orderBy | string | Сортировка: * `relevant` - По важности * `date` - По дате | [optional] |
page | int? | [optional] |
No authorization required
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]