Skip to content

Latest commit

 

History

History
202 lines (147 loc) · 5.04 KB

AuthApi.md

File metadata and controls

202 lines (147 loc) · 5.04 KB

Org.OpenAPITools.Api.AuthApi

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

Method HTTP request Description
AuthLogin POST /auth/login
AuthQr POST /auth/qr
AuthSocial POST /auth/social/{type}

AuthLogin

InlineResponse200 AuthLogin (string login, string password)

Авторизация через email

Example

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

namespace Example
{
    public class AuthLoginExample
    {
        public void main()
        {
            
            var apiInstance = new AuthApi();
            var login = login_example;  // string |  (optional) 
            var password = password_example;  // string |  (optional) 

            try
            {
                InlineResponse200 result = apiInstance.AuthLogin(login, password);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling AuthApi.AuthLogin: " + e.Message );
            }
        }
    }
}

Parameters

Name Type Description Notes
login string [optional]
password string [optional]

Return type

InlineResponse200

Authorization

No authorization required

HTTP request headers

  • Content-Type: multipart/form-data
  • Accept: application/json

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

AuthQr

InlineResponse200 AuthQr (string token)

Авторизация через QR код

Example

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

namespace Example
{
    public class AuthQrExample
    {
        public void main()
        {
            
            var apiInstance = new AuthApi();
            var token = token_example;  // string |  (optional) 

            try
            {
                InlineResponse200 result = apiInstance.AuthQr(token);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling AuthApi.AuthQr: " + e.Message );
            }
        }
    }
}

Parameters

Name Type Description Notes
token string [optional]

Return type

InlineResponse200

Authorization

No authorization required

HTTP request headers

  • Content-Type: multipart/form-data
  • Accept: application/json

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

AuthSocial

InlineResponse200 AuthSocial (string type, string token, string email, int? linking)

Авторизация через социальную сеть

Example

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

namespace Example
{
    public class AuthSocialExample
    {
        public void main()
        {
            
            var apiInstance = new AuthApi();
            var type = type_example;  // string | 
            var token = token_example;  // string |  (optional) 
            var email = email_example;  // string |  (optional) 
            var linking = 56;  // int? | Если 1, то аккаунт привяжется к текущему (optional)  (default to 0)

            try
            {
                InlineResponse200 result = apiInstance.AuthSocial(type, token, email, linking);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling AuthApi.AuthSocial: " + e.Message );
            }
        }
    }
}

Parameters

Name Type Description Notes
type string
token string [optional]
email string [optional]
linking int? Если 1, то аккаунт привяжется к текущему [optional] [default to 0]

Return type

InlineResponse200

Authorization

No authorization required

HTTP request headers

  • Content-Type: multipart/form-data
  • Accept: application/json

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