Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
CodeWithSwastik authored Jun 4, 2021
1 parent 396d3fe commit c73d2bf
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,24 +11,23 @@ You can install released versions of prsaw from the Python Package Index with pi
**Stable Release:** `pip install prsaw`<br>
**Working Version:** `pip install git+https://github.com/CodeWithSwastik/prsaw.git`

## Example Usage
## Example Usage (No API KEY)
```python
# import the module
from prsaw import RandomStuff

# initiate the object
api_key = "Your API Key"
rs = RandomStuff(api_key = api_key) # You can avoid this step if you don't have an api key
rs = RandomStuffV2()

# get a response from an endpoint
response = rs.get_ai_response("How are you?")
response = rs.get_ai_response("How are you?")
print(response)

# close the object once done (recommended)
rs.close()
```

## Example async usage
## Example async usage (With an API key)
```python
# import the module
from prsaw import RandomStuff
Expand Down

0 comments on commit c73d2bf

Please sign in to comment.