deno.land / x / devrant@0.1.1

devRant API

A wrapper for the devRant API.


import { User } from "https://deno.land/x/devrant@0.1.0/mod.ts";


User Id

Query for a users Id with their username.

const userId = await User.id('ElectroArchiver'); // 5703431


User Content

Query for a users profile content with a users Id.

const content = await DevRant.User.content({

    //  all , rants , upvoted , comments , favorites , collabs

    content : 'all' ,

    userId : 5703431
});

devrant

Version Info

Tagged at
a year ago