lordjoo/laraapigee

This is my package laraapigee

Fund package maintenance!
lordjoo

v0.2.2 2024-10-20 13:43 UTC

This package is auto-updated.

Last update: 2024-12-25 11:40:38 UTC


README

Getting Started

  1. Install the package via composer:
composer require lordjoo/laraapigee
  1. Set the environment variables in your .env file:
APIGEE_USERNAME=
APIGEE_PASSWORD=
APIGEE_ENDPOINT=
APIGEE_ORGANIZATION=

Usage Example

// fetch all developers
\Lordjoo\LaraApigee\Facades\LaraApigee::edge()->developers()->get();


// create a developer
$dev = new \Lordjoo\LaraApigee\Api\Edge\Entities\Developer();
$dev->setFirstName('Ammar')->setLastName("Agha")->setEmail('ammar@apigee.com')->setUserName('ammar');

$dev = \Lordjoo\LaraApigee\Facades\LaraApigee::edge()->developers()->create($dev);

// update a developer
$dev->setFirstName('Ammar')->setLastName("Aghaa");
$dev = \Lordjoo\LaraApigee\Facades\LaraApigee::edge()->developers()->update($dev->getEmail(), $dev);