Skip to content

Teknasyon-Teknoloji/huawei-mobile-service

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

39 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Huawei Mobile Service

Current services:

  • InAppPurchase

Requirements

ext-json
ext-redis
google/apiclient
guzzlehttp/guzzle

Install

"repositories": [
    {
      "type": "git",
      "url": "https://github.com/Teknasyon-Teknoloji/huawei-mobile-service.git"
    }
],
"require" : {
    "teknasyon/huawei-mobile-service": "dev-master",
}

Usage

The first step is to define and implement the Job to be managed.

<?php

$client = new HuaweiClient($this->credentials);
if ($logger != null) {
    $client->setLogger($logger);
}
if ($redis != null) {
    $client->setRedis($redis);
}
$publisherService = new Publisher($client);


$subcriptionGetRequest = new SubscriptionGetRequest();
$subcriptionGetRequest->setSubscriptionId($subscriptionId);
$subcriptionGetRequest->setPurchaseToken($purchaseToken);

$purchase = $publisherService->purchases_subscriptions->get($subcriptionGetRequest);

About

A PHP client library for accessing Huawei APIs

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages

  • PHP 100.0%