Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
letsintegreat authored Oct 7, 2022
1 parent 8896639 commit 35467f8
Showing 1 changed file with 37 additions and 2 deletions.
39 changes: 37 additions & 2 deletions dart/generate_short_url/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,15 @@ _Example input 1:_
}
```

_Example output 1:_

```json
{
"success": true,
"url": "https://bit.ly/3SDv4VA"
}
```

_Example input 2:_

```json
Expand All @@ -20,15 +29,41 @@ _Example input 2:_
}
```

_Example output:_
_Example output 2:_

```json
{
"success": true,
"url": "https://bit.ly/3SDv4VA"
"url": "https://tinyurl.com/2p9hzpun"
}
```

_Example input 3:_

```json
{
"provider": "tinyurl",
"url": "httpswwwgooglecom"
}
```

_Example output 3:_

```json
{
"success": false,
"message": "Invalid URL"
}
```

If the API Key is not correct, you would get:

```json
{
"success": false,
"message": "Invalid API key"
}
```

## 📝 Environment Variables

Expand Down

0 comments on commit 35467f8

Please sign in to comment.