Skip to content

Commit

Permalink
chore(readme): updated docs
Browse files Browse the repository at this point in the history
  • Loading branch information
Ahmard committed Dec 20, 2023
1 parent 21fffdb commit fc33e99
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ require __DIR__ . '/vendor/autoload.php';
$client = Application::client(authToken: '<authentication-token>');

// List
$neurons = $client->list();
$applications = $client->list();

// Create
$created = $client->create(
Expand All @@ -32,18 +32,18 @@ $created = $client->create(

// Update
$updated = $client->update(
id: $created->neuron_id,
id: $created->application_id,
name: 'My Application 1',
url: 'localhost:7788',
webhook: 'localhost:7788/webhook',
desc: 'Hello World',
);

// Fetch Info
$viewed = $neuron->read('2eb91dc3-b8ad-4d41-a207-963cec055fac');
$viewed = $application->read('2eb91dc3-b8ad-4d41-a207-963cec055fac');

// Delete
$message = $neuron->delete($created->neuron_id);
$message = $application->delete($created->neuron_id);

```

Expand All @@ -63,7 +63,7 @@ use SpiralOver\Mailer\Client\Mailer;
require __DIR__ . '/vendor/autoload.php';

$client = Mailer::client(authToken: '<authentication-token>');
$response = $application->send(
$response = $client->send(
appId: '2eb91dc3-b8ad-4d41-a207-963cec055fab',
mails: [
MailData::create(
Expand Down

0 comments on commit fc33e99

Please sign in to comment.