Skip to content
This repository has been archived by the owner on Feb 24, 2024. It is now read-only.

Commit

Permalink
updated README
Browse files Browse the repository at this point in the history
  • Loading branch information
pj8912 committed May 17, 2023
1 parent 0df01ad commit 0105917
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,15 +18,15 @@ Follow the [gif](https://github.com/dsdanielpark/Bard-API/blob/main/assets/bard_

## Use
```php
<?php
$_ENV['_BARD_API_KEY'] = "Your Key";
require_once 'vendor/autoload.php';
use Pj8912\PhpBardApi\Bard;
$_ENV['_BARD_API_KEY'] = "Your Key";
$bard = new Bard();
$input_text = "Hello, Bard!"; // Input text for the conversation
$result = $bard->get_answer($input_text); // Get the response from Bard
// Access the result data
$content = $result["content"];
print($content);
?>
```
## License
This project is licensed under the [MIT](https://opensource.org/license/mit/) License
Expand Down

0 comments on commit 0105917

Please sign in to comment.