Generate QR Code
| Endpoint | http://arikaim.dev/ |
| Method |
POST
|
| Path | /api/qrcode/generate |
| Authentication | session token public |
Qr Code content type
| Name | Description | Type | Required | Default |
|---|---|---|---|---|
| text | Text content | String | true |
| Name | Description | Type | Required | Default |
|---|---|---|---|---|
| url | Limk url | String | true |
| Name | Description | Type | Required | Default |
|---|---|---|---|---|
| to | Email address recipient | String | true | |
| subject | Email subject | String | true | |
| body | Email message body | String | true |
| Name | Description | Type | Required | Default |
|---|---|---|---|---|
| phone | Phone number | Integer|String | true | |
| message | Message text | String | true |
| Name | Description | Type | Required | Default |
|---|---|---|---|---|
| phone | Phone number | Integer|String | true | |
| country_code | Country code | Integer | true |
| Name | Description | Type | Required | Default |
|---|---|---|---|---|
| username | Skype username | String | true | |
| type | Link type chat or call | String | true | chat |
| Name | Description | Type | Required | Default |
|---|---|---|---|---|
| username | Twitter username | String | true | |
| text | Message text | String | true | |
| type | Link type link or post | String | true | link |
| Name | Description | Type | Required | Default |
|---|---|---|---|---|
| country_code | Twitter username | String|Integer | true | |
| phone | Phone number | String|Integer | true | |
| message | Message text | String | true |
| Name | Description | Type | Required | Default |
|---|---|---|---|---|
| type | Link type | String | true | share |
| url | Link url | String | true |
composer require arikaim/api-client
require 'vendor/autoload.php';
use Arikaim\Client\ArikaimClient;
$apiKey = 'API KEY';
$endpoint = 'SITE URL';
$client = new ArikaimClient($apiKey,$endpoint);
$response = $client->request('POST','/api/qrcode/generate',[
.. Request parameters
]);
print_r($response->toArray());
{
"result": {
"uuid": "Uuid for saved codes only.",
"image": "Encoded qr code image.",
"image_type": "Image type."
},
"status": "ok",
"code": 200,
"errors": [],
"execution_time": 0.04396200180053711
}
| Name | Description | Type | Default |
|---|---|---|---|
| uuid | Uuid for saved codes only. | string | |
| image | Encoded qr code image. | string | |
| image_type | Image type. | string |
We use cookies to personalise content, analyse our traffic and ensure that we give you the best experience on our website.