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} |
InlineResponse200 AuthLogin (string login, string password)
Авторизация через email
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 );
}
}
}
}
Name | Type | Description | Notes |
---|---|---|---|
login | string | [optional] | |
password | string | [optional] |
No authorization required
- Content-Type: multipart/form-data
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
InlineResponse200 AuthQr (string token)
Авторизация через QR код
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 );
}
}
}
}
Name | Type | Description | Notes |
---|---|---|---|
token | string | [optional] |
No authorization required
- Content-Type: multipart/form-data
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
InlineResponse200 AuthSocial (string type, string token, string email, int? linking)
Авторизация через социальную сеть
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 );
}
}
}
}
Name | Type | Description | Notes |
---|---|---|---|
type | string | ||
token | string | [optional] | |
string | [optional] | ||
linking | int? | Если 1, то аккаунт привяжется к текущему | [optional] [default to 0] |
No authorization required
- Content-Type: multipart/form-data
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]