All URIs are relative to https://api.dtf.ru/v1.6
Method | HTTP request | Description |
---|---|---|
GetSubsite | GET /subsite/{id} | |
GetSubsiteTimeline | GET /subsite/{id}/timeline/{sorting} | |
GetSubsiteVacancies | GET /subsite/{subsite_id}/vacancies | |
GetSubsiteVacanciesMore | GET /subsite/{subsite_id}/vacancies/more/{last_id} | |
GetSubsitesList | GET /subsites_list/{type} | |
SubsiteSubscribe | GET /subsite/{id}/subscribe | |
SubsiteUnsubscribe | GET /subsite/{id}/unsubscribe |
InlineResponse20023 GetSubsite (Object id)
Возвращает подсайт
using System;
using System.Diagnostics;
using Org.OpenAPITools.Api;
using Org.OpenAPITools.Client;
using Org.OpenAPITools.Model;
namespace Example
{
public class GetSubsiteExample
{
public void main()
{
var apiInstance = new SubsiteApi();
var id = 8.14; // Object |
try
{
InlineResponse20023 result = apiInstance.GetSubsite(id);
Debug.WriteLine(result);
}
catch (Exception e)
{
Debug.Print("Exception when calling SubsiteApi.GetSubsite: " + e.Message );
}
}
}
}
Name | Type | Description | Notes |
---|---|---|---|
id | Object |
No authorization required
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
InlineResponse2002 GetSubsiteTimeline (Object id, string sorting, long? count, long? offset)
Возвращает список статей для подсайта
using System;
using System.Diagnostics;
using Org.OpenAPITools.Api;
using Org.OpenAPITools.Client;
using Org.OpenAPITools.Model;
namespace Example
{
public class GetSubsiteTimelineExample
{
public void main()
{
var apiInstance = new SubsiteApi();
var id = 8.14; // Object |
var sorting = sorting_example; // string |
var count = 789; // long? | (optional)
var offset = 789; // long? | (optional)
try
{
InlineResponse2002 result = apiInstance.GetSubsiteTimeline(id, sorting, count, offset);
Debug.WriteLine(result);
}
catch (Exception e)
{
Debug.Print("Exception when calling SubsiteApi.GetSubsiteTimeline: " + e.Message );
}
}
}
}
Name | Type | Description | Notes |
---|---|---|---|
id | Object | ||
sorting | string | ||
count | long? | [optional] | |
offset | long? | [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]
InlineResponse20024 GetSubsiteVacancies (Object subsiteId)
Получить вакансии для компании
using System;
using System.Diagnostics;
using Org.OpenAPITools.Api;
using Org.OpenAPITools.Client;
using Org.OpenAPITools.Model;
namespace Example
{
public class GetSubsiteVacanciesExample
{
public void main()
{
var apiInstance = new SubsiteApi();
var subsiteId = 8.14; // Object | id подсайта
try
{
InlineResponse20024 result = apiInstance.GetSubsiteVacancies(subsiteId);
Debug.WriteLine(result);
}
catch (Exception e)
{
Debug.Print("Exception when calling SubsiteApi.GetSubsiteVacancies: " + e.Message );
}
}
}
}
Name | Type | Description | Notes |
---|---|---|---|
subsiteId | Object | id подсайта |
No authorization required
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
InlineResponse20024 GetSubsiteVacanciesMore (Object subsiteId, Object lastId)
Подгрузить вакансии для компании
using System;
using System.Diagnostics;
using Org.OpenAPITools.Api;
using Org.OpenAPITools.Client;
using Org.OpenAPITools.Model;
namespace Example
{
public class GetSubsiteVacanciesMoreExample
{
public void main()
{
var apiInstance = new SubsiteApi();
var subsiteId = 8.14; // Object | id подсайта
var lastId = 8.14; // Object | last_id из предыдущей подгрузки
try
{
InlineResponse20024 result = apiInstance.GetSubsiteVacanciesMore(subsiteId, lastId);
Debug.WriteLine(result);
}
catch (Exception e)
{
Debug.Print("Exception when calling SubsiteApi.GetSubsiteVacanciesMore: " + e.Message );
}
}
}
}
Name | Type | Description | Notes |
---|---|---|---|
subsiteId | Object | id подсайта | |
lastId | Object | last_id из предыдущей подгрузки |
No authorization required
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
InlineResponse20016 GetSubsitesList (string type)
Получить рекомендуемые подсайты для анонимного пользователя
using System;
using System.Diagnostics;
using Org.OpenAPITools.Api;
using Org.OpenAPITools.Client;
using Org.OpenAPITools.Model;
namespace Example
{
public class GetSubsitesListExample
{
public void main()
{
var apiInstance = new SubsiteApi();
var type = sections; // string | Тип контента: * `sections` - подсайты * `companies` - компании
try
{
InlineResponse20016 result = apiInstance.GetSubsitesList(type);
Debug.WriteLine(result);
}
catch (Exception e)
{
Debug.Print("Exception when calling SubsiteApi.GetSubsitesList: " + e.Message );
}
}
}
}
Name | Type | Description | Notes |
---|---|---|---|
type | string | Тип контента: * `sections` - подсайты * `companies` - компании |
No authorization required
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
InlineResponse20025 SubsiteSubscribe (Object id)
Подписка на подсайт
using System;
using System.Diagnostics;
using Org.OpenAPITools.Api;
using Org.OpenAPITools.Client;
using Org.OpenAPITools.Model;
namespace Example
{
public class SubsiteSubscribeExample
{
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 SubsiteApi();
var id = 8.14; // Object |
try
{
InlineResponse20025 result = apiInstance.SubsiteSubscribe(id);
Debug.WriteLine(result);
}
catch (Exception e)
{
Debug.Print("Exception when calling SubsiteApi.SubsiteSubscribe: " + e.Message );
}
}
}
}
Name | Type | Description | Notes |
---|---|---|---|
id | Object |
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
InlineResponse20025 SubsiteUnsubscribe (Object id)
Отписка от подсайта
using System;
using System.Diagnostics;
using Org.OpenAPITools.Api;
using Org.OpenAPITools.Client;
using Org.OpenAPITools.Model;
namespace Example
{
public class SubsiteUnsubscribeExample
{
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 SubsiteApi();
var id = 8.14; // Object |
try
{
InlineResponse20025 result = apiInstance.SubsiteUnsubscribe(id);
Debug.WriteLine(result);
}
catch (Exception e)
{
Debug.Print("Exception when calling SubsiteApi.SubsiteUnsubscribe: " + e.Message );
}
}
}
}
Name | Type | Description | Notes |
---|---|---|---|
id | Object |
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]