Skip to content

baturin/drom-test-task-service-client

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Library to work with example comments API.

Example usage with Guzzle HTTP library:

$httpClient = new GuzzleHttp\Client(
    ['base_uri' => 'https://example.com/']
);
$apiClient = new ExampleComApi($httpClient);

// Get all comments
$apiClient->getComments();

// Add a new comment
$newComment = $apiClient->addComment('John', 'Hi there!');

// Modify an existing comment
$updatedComment = $apiClient->updateComment($newComment->id, text: 'Hello world!');

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages