medboubazine / moogold
MooGold API Helper
1.0.2
2024-10-19 18:42 UTC
Requires
- guzzlehttp/guzzle: >=7.0
- illuminate/support: >=10.0
Requires (Dev)
- symfony/error-handler: ^7.1
- symfony/var-dumper: >=6.0
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
- Balance
$user->balance();
-
Products
- List
$products->list(int $categgory_id);
- Details
$products->details(int $product_id);
-
Orders
- Create
$orders->create(int $type, string $external_id, string $offer_id, int $quantity);
- Details
$orders->details(int $id);