maatify/huawei-hms-core

maatify.dev HMS Core handler, known by our team

1.0.5 2024-04-29 12:10 UTC

This package is auto-updated.

Last update: 2024-10-29 13:13:30 UTC


README

Current version Packagist PHP Version Support Monthly Downloads Total Downloads Stars

HuaweiHmsCore

maatify.dev HuaweiHmsCore Handler, known by our team

Installation

composer require maatify/huawei-hms-core

Important

<?php

use Maatify\HMS\HMSCoreRequest;

/**
 * Created by Maatify.dev
 * User: Maatify.dev
 * Date: 2024-04-29
 * Time: 11:19 AM
 * https://www.Maatify.dev
 */
class HMSConnector extends HMSCoreRequest
{
    protected string $APP_ID_FROM_CONSOLE = __APP_ID_FROM_CONSOLE__;

    protected string|int $client_id = __client_id__;

    protected string $client_credentials = __client_credentials__;

    public function CallHMSByToken(string $title, string $message, string $token)
    {
        return $this
            ->SetTitle($title)
            ->SetMessage($message)
            ->SetTokens([$token])
            ->Load();
    }

}