MadelineProtoDocs/old_docs/API_docs_v86/constructors/authorization.md

50 lines
1.6 KiB
Markdown
Raw Normal View History

2018-12-26 02:56:50 +01:00
---
title: authorization
description: Authorization
image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png
---
# Constructor: authorization
[Back to constructors index](index.md)
Authorization
### Attributes:
| Name | Type | Required | Description |
|----------|---------------|----------|-------------|
|hash|[long](../types/long.md) | Yes|Hash|
|device\_model|[string](../types/string.md) | Yes|Device model|
|platform|[string](../types/string.md) | Yes|Platform|
|system\_version|[string](../types/string.md) | Yes|System version|
|api\_id|[int](../types/int.md) | Yes|Api ID|
|app\_name|[string](../types/string.md) | Yes|App name|
|app\_version|[string](../types/string.md) | Yes|App version|
|date\_created|[int](../types/int.md) | Yes|Date created|
|date\_active|[int](../types/int.md) | Yes|Date active|
|ip|[string](../types/string.md) | Yes|Ip|
|country|[string](../types/string.md) | Yes|Country|
|region|[string](../types/string.md) | Yes|Region|
### Type: [Authorization](../types/Authorization.md)
### Example:
```php
$authorization = ['_' => 'authorization', 'hash' => long, 'device_model' => 'string', 'platform' => 'string', 'system_version' => 'string', 'api_id' => int, 'app_name' => 'string', 'app_version' => 'string', 'date_created' => int, 'date_active' => int, 'ip' => 'string', 'country' => 'string', 'region' => 'string'];
```
Or, if you're into Lua:
```lua
authorization={_='authorization', hash=long, device_model='string', platform='string', system_version='string', api_id=int, app_name='string', app_version='string', date_created=int, date_active=int, ip='string', country='string', region='string'}
```