Skip to content

A Kotlin library for interacting with the reddit api

Notifications You must be signed in to change notification settings

hotpodata/baconforkotlin

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

#BaconForKotlin

This is a simple kotlin library for interacting with the reddit api.

This library was built out for the very simple usecase of BaconMasher. Thus it is not very full featured. Still, it provides a cood starting place.

###Usage

var service = RedditSessionService(<UserAgentString>, <ThisDeviceUniqueId>, <RedditApplicationId>)
var sub = service.flatMap 
    { 
        it.getRandomSubredditPost("EarthPorn","") 
    }
    .subscribe {
        for(item in it){
            if(item.data is t1){
                //Do something with comment like post
            }else if(item.data is t3){
                //Do something with content post...
            }
        }
    }

For more information about using the reddit api please visit: https://www.reddit.com/dev/api

About

A Kotlin library for interacting with the reddit api

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published