Certificates
- 1.
- 2.
- 3.Choosing the type of project "School"
- 4.Go to the project editing page
- 5.After entering the REDIRECT_URL field, you will receive a Client ID and a Secret Key
Creating a link to get a certificate
PHP
$params = [
'client_id' => CLIENT_ID,
'course' => COURSE_NAME,
'result' => 'Silver Certificate',
'certificate' => CERTIFICATE_URL,
'result_image' => RESULT_ICON,
'certificate_id' => CERTIFICATE_ID,
'date' => DATE,
'type_id' => '3',
];
$string_to_sign = $params['client_id'].$params['certificate_id'].$params['result'];
$signature = rtrim(strtr(base64_encode(hash_hmac('sha256', $string_to_sign, CLIENT_SECRET, true)), ['+' => '']), '=');
$params['signature'] = $signature;
$url = 'https://multi-pass.online/certificate/add?' . http_build_query($params);
After clicking on the link and authorization, a certificate will be added to the user
Link Parameters:
Param | Required | Description |
---|---|---|
cliend_id | Yes | CLIENT_ID issued to you in the project cabinet |
course | Yes | The name of the course for which the certificate was received |
result | Yes | The name of the result, for example, "Silver Certificate" or "Participated" |
certificate | No | URL with your certificate, for example in pdf format |
result_image | No | Result icon |
certificate_id | Yes | The unique identifier of the certificate, it is impossible to create two certificates with the same identifier |
date | No | Date of certificate creation, if the field is not filled in, the current date will be assigned |
type_id | No | ID of the certificate type. Options are available:
1 - Gold Certificate,
2 - Silver Certificate,
3 - Bronze Certificate,
4 - Standard Certificate.
If the field is empty, a standard certificate will be assigned |
Last modified 6mo ago