-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
ff2c125
commit 6376236
Showing
3 changed files
with
134 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,33 @@ | ||
# devRant | ||
WIP | ||
|
||
<br> | ||
|
||
<div align = center> | ||
|
||
<img | ||
src = 'Resources/devRant.svg' | ||
width = 120 | ||
/> | ||
|
||
<br> | ||
|
||
**[Deno]** *module for **[devRant]**'s API.* | ||
|
||
<br> | ||
<br> | ||
|
||
[![Button Documentation]][Documentation] | ||
|
||
</div> | ||
|
||
<br> | ||
|
||
|
||
<!-----------------------------------------------------------------------------> | ||
|
||
[Documentation]: https://deno.land/x/devrant | ||
[devRant]: https://devrant.com/ | ||
[Deno]: https://deno.land/ | ||
|
||
<!---------------------------------[ Buttons ]---------------------------------> | ||
|
||
[Button Documentation]: https://img.shields.io/badge/Documentation-00A1E9?style=for-the-badge&logoColor=white&logo=GitBook |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
|
||
## devRant API | ||
|
||
*A wrapper for the **[devRant]** API.* | ||
|
||
<br> | ||
|
||
```JavaScript | ||
import { User } from "https://deno.land/x/[email protected]/mod.ts"; | ||
``` | ||
|
||
<br> | ||
<br> | ||
|
||
## User Id | ||
|
||
*Query for a users Id with their username.* | ||
|
||
```JavaScript | ||
const userId = await User.id('ElectroArchiver'); // 5703431 | ||
``` | ||
|
||
<br> | ||
<br> | ||
|
||
## User Content | ||
|
||
*Query for a users profile content with a users Id.* | ||
|
||
```JavaScript | ||
const content = await DevRant.User.content({ | ||
|
||
// all , rants , upvoted , comments , favorites , collabs | ||
|
||
content : 'all' , | ||
|
||
userId : 5703431 | ||
}); | ||
``` | ||
|
||
<br> | ||
|
||
|
||
<!-----------------------------------------------------------------------------> | ||
|
||
[devRant]: https://devrant.com/ |