Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
emersonsm authored Aug 23, 2017
1 parent 8b110a1 commit f727952
Showing 1 changed file with 24 additions and 0 deletions.
24 changes: 24 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,2 +1,26 @@
# php7-duckduckgo
An unofficial library using the DuckDuckGo API

## Notes

This API requires PHP v7.0 or higher.

To use the DuckDuckGo API in your application, just use a namespace, instance a class and receive an object response.

## Example

```php
<?php

use DuckDuckGo\Api;

$api = new Api();
$response = $api->zeroClickQuery("What is the meaning of life?");
echo $response->AbstractText;
```

This will reproduce:
> The meaning of life, or the answer to the question "What is the meaning of life?", pertains to the significance of living or existence in general. Many other related questions include "Why are we here?", "What is life all about?", or "What is the purpose of existence?" There have been a large number of proposed answers to these questions from many different cultural and ideological backgrounds. The search for life's meaning has produced much philosophical, scientific, theological, and metaphysical speculation throughout history. Different people and cultures believe different things for the answer to this question.
## Help?
Any help, you can use issues system.

0 comments on commit f727952

Please sign in to comment.