[comment]: # translation:outdated

[comment]: # ({4480ea6d-4480ea6d})
# אסימון.ליצור

[comment]: # ({/4480ea6d-4480ea6d})

[comment]: # ({3f13b874-3f13b874})
### תיאור

`object token.generate(מערך tokenids)`

שיטה זו מאפשרת ליצור אסימונים.

::: noteclassic
רק סוג משתמש *סופר אדמין* רשאי לנהל עבורם אסימונים
משתמשים אחרים.
:::

[comment]: # ({/3f13b874-3f13b874})

[comment]: # ({db2ee95a-db2ee95a})
### פרמטרים

מזהי `(מערך)` של האסימונים להפקה.

[comment]: # ({/db2ee95a-db2ee95a})

[comment]: # ({79084a4e-101a0040})
### החזר ערכים

`(מערך)` מחזירה מערך של אובייקטים המכילים את המזהה של המיוצר
אסימון תחת המאפיין 'tokenid' ומחרוזת הרשאה שנוצרה
תחת נכס 'אסימון'.

|Property|[Type](/manual/api/reference_commentary#data_types)|תיאור|
|--|--|------|
|tokenid|string|מזהה של האסימון.|
|token|string|מחרוזת ההרשאה שנוצרה עבור אסימון זה.|

[comment]: # ({/79084a4e-101a0040})

[comment]: # ({b41637d2-b41637d2})
### דוגמאות

[comment]: # ({/b41637d2-b41637d2})

[comment]: # ({fa0f9198-c0623539})
#### צור אסימונים מרובים

צור שני אסימונים.

בַּקָשָׁה:

``` json
{
     "jsonrpc": "2.0",
     "method": "token.generate",
     "פארמים": [
         "1",
         "2"
     ],
     "auth": "3a57200802b24cda67c4e4010b50c065",
     "מזהה": 1
}
```

תְגוּבָה:

``` json
{
     "jsonrpc": "2.0",
     "תוצאה": [
         {
             "tokenid": "1",
             "אסימון": "bbcfce79a2d95037502f7e9a534906d3466c9a1484beb6ea0f4e7be28e8b8ce2"
         },
         {
             "tokenid": "2",
             "אסימון": "fa1258a83d518eabd87698a96bd7f07e5a6ae8aeb8463cae33d50b91dd21bd6d"
         }
     ],
     "מזהה": 0
}
```

[comment]: # ({/fa0f9198-c0623539})

[comment]: # ({39ba5785-39ba5785})
### מקור

CToken::generate()‎ בתוך *ui/include/classes/api/services/CToken.php*.

[comment]: # ({/39ba5785-39ba5785})
