medboubazine/moogold

MooGold API Helper

1.0.2 2024-10-19 18:42 UTC

This package is auto-updated.

Last update: 2024-12-19 18:57:43 UTC


README

composer require medboubazine/moogold

How it works

$user_id = "";
$partner_id = "";
$secret_key = "";

//
// Credentials
//
$credentials = new Credentials($user_id, $partner_id, $secret_key);
//
// Main instance
//
$moogold =  new Moogold($credentials);

$user = $moogold->user();
$products = $moogold->products();
$orders = $moogold->orders();
  • User

    1. Balance
    $user->balance();
  • Products

    1. List
        $products->list(int $categgory_id);
    1. Details
        $products->details(int $product_id);
  • Orders

    1. Create
        $orders->create(int $type, string $external_id, string $offer_id, int $quantity);
    1. Details
        $orders->details(int $id);