QR Code Generator API

Automated QrCode generation.

Generate QR Code

Endpoint http://arikaim.dev/
Method
POST
Path /api/qrcode/generate
Authentication session token public

Parameters

content_type
Type string
Default text
Required

Qr Code content type

Content type values

text

Params

Name Description Type Required Default
text Text content String true
link

Params

Name Description Type Required Default
url Limk url String true
email

Params

Name Description Type Required Default
to Email address recipient String true
subject Email subject String true
body Email message body String true
sms

Params

Name Description Type Required Default
phone Phone number Integer|String true
message Message text String true
phone

Params

Name Description Type Required Default
phone Phone number Integer|String true
country_code Country code Integer true
skype.link

Params

Name Description Type Required Default
username Skype username String true
type Link type chat or call String true chat
twitter.link

Params

Name Description Type Required Default
username Twitter username String true
text Message text String true
type Link type link or post String true link
whatsapp

Params

Name Description Type Required Default
country_code Twitter username String|Integer true
phone Phone number String|Integer true
message Message text String true
facebook.link

Params

Name Description Type Required Default
type Link type String true share
url Link url String true

Examples

Install Arikaim CMS client
 composer require arikaim/api-client 
Usage
 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());

Response

{
    "result": {
        "uuid": "Uuid for saved codes only.",
        "image": "Encoded qr code image.",
        "image_type": "Image type."
    },
    "status": "ok",
    "code": 200,
    "errors": [],
    "execution_time": 0.034744977951049805
}

Fields

Name Description Type Default
uuid Uuid for saved codes only. string
image Encoded qr code image. string
image_type Image type. string