Skip to content

Latest commit

 

History

History
264 lines (193 loc) · 6.64 KB

TimelineApi.md

File metadata and controls

264 lines (193 loc) · 6.64 KB

Org.OpenAPITools.Api.TimelineApi

All URIs are relative to https://api.dtf.ru/v1.6

Method HTTP request Description
GetFlashholder GET /getflashholdedentry
GetTimeline GET /timeline/{category}/{sorting}
GetTimelineByHashtag GET /timeline/mainpage
GetTimelineNews GET /news/default/recent

GetFlashholder

InlineResponse2001 GetFlashholder ()

Получить прикрепленную запись

Example

using System;
using System.Diagnostics;
using Org.OpenAPITools.Api;
using Org.OpenAPITools.Client;
using Org.OpenAPITools.Model;

namespace Example
{
    public class GetFlashholderExample
    {
        public void main()
        {
            
            var apiInstance = new TimelineApi();

            try
            {
                InlineResponse2001 result = apiInstance.GetFlashholder();
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling TimelineApi.GetFlashholder: " + e.Message );
            }
        }
    }
}

Parameters

This endpoint does not need any parameter.

Return type

InlineResponse2001

Authorization

No authorization required

HTTP request headers

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

[Back to top] [Back to API list] [Back to Model list] [Back to README]

GetTimeline

InlineResponse2001 GetTimeline (string category, string sorting, long? count, long? offset)

Возвращает ленту записей

Example

using System;
using System.Diagnostics;
using Org.OpenAPITools.Api;
using Org.OpenAPITools.Client;
using Org.OpenAPITools.Model;

namespace Example
{
    public class GetTimelineExample
    {
        public void main()
        {
            
            var apiInstance = new TimelineApi();
            var category = category_example;  // string | category entries
            var sorting = sorting_example;  // string | sorting entries
            var count = 789;  // long? |  (optional) 
            var offset = 789;  // long? |  (optional) 

            try
            {
                InlineResponse2001 result = apiInstance.GetTimeline(category, sorting, count, offset);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling TimelineApi.GetTimeline: " + e.Message );
            }
        }
    }
}

Parameters

Name Type Description Notes
category string category entries
sorting string sorting entries
count long? [optional]
offset long? [optional]

Return type

InlineResponse2001

Authorization

No authorization required

HTTP request headers

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

[Back to top] [Back to API list] [Back to Model list] [Back to README]

GetTimelineByHashtag

InlineResponse2001 GetTimelineByHashtag (string hashtag, long? count, long? offset)

Получить ленту записей по хэштегу

Example

using System;
using System.Diagnostics;
using Org.OpenAPITools.Api;
using Org.OpenAPITools.Client;
using Org.OpenAPITools.Model;

namespace Example
{
    public class GetTimelineByHashtagExample
    {
        public void main()
        {
            
            var apiInstance = new TimelineApi();
            var hashtag = hashtag_example;  // string | 
            var count = 789;  // long? |  (optional) 
            var offset = 789;  // long? |  (optional) 

            try
            {
                InlineResponse2001 result = apiInstance.GetTimelineByHashtag(hashtag, count, offset);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling TimelineApi.GetTimelineByHashtag: " + e.Message );
            }
        }
    }
}

Parameters

Name Type Description Notes
hashtag string
count long? [optional]
offset long? [optional]

Return type

InlineResponse2001

Authorization

No authorization required

HTTP request headers

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

[Back to top] [Back to API list] [Back to Model list] [Back to README]

GetTimelineNews

InlineResponse2001 GetTimelineNews (long? count, long? offset)

Получить ленту новостей

Example

using System;
using System.Diagnostics;
using Org.OpenAPITools.Api;
using Org.OpenAPITools.Client;
using Org.OpenAPITools.Model;

namespace Example
{
    public class GetTimelineNewsExample
    {
        public void main()
        {
            
            var apiInstance = new TimelineApi();
            var count = 789;  // long? |  (optional) 
            var offset = 789;  // long? |  (optional) 

            try
            {
                InlineResponse2001 result = apiInstance.GetTimelineNews(count, offset);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling TimelineApi.GetTimelineNews: " + e.Message );
            }
        }
    }
}

Parameters

Name Type Description Notes
count long? [optional]
offset long? [optional]

Return type

InlineResponse2001

Authorization

No authorization required

HTTP request headers

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

[Back to top] [Back to API list] [Back to Model list] [Back to README]