Skip to content

Commit

Permalink
updated README#
Browse files Browse the repository at this point in the history
  • Loading branch information
luca committed Sep 1, 2020
1 parent c658b7f commit 010dfe7
Showing 1 changed file with 26 additions and 3 deletions.
29 changes: 26 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -38,8 +38,8 @@ dependencies {
// step 1 - create the helper
val helper = AuthUserlessHelper(
context = this,
clientId = **CLIENT ID STRING**,
deviceId = **DEVICE ID**, // set as null to use the default android UUID
clientId = "**CLIENT ID STRING**",
deviceId = "**DEVICE ID**", // set as null to use the default android UUID
scopes = creds.scopes.toTypedArray(), // array of scopes strings
logging = true
)
Expand Down Expand Up @@ -100,11 +100,34 @@ val submissions = fetcher.fetchNext()
println(submissions.toString())

// get inbox messages
val fetcher = client?.messagesClient?.inbox()
val fetcher = client.messagesClient.inbox()
val messages = fetcher.fetchNext()

println(messages.toString())

// get redditor profile
val redditor = client.redditorsClient.redditor("Kirk-Bushman")

println(redditor.toString())

// upvote a submission
val submission: Submission = ...
client.contributionsClient.vote(Vote.UPVOTE, submission)

// get submissions from a multireddit
val fetcher = client.contributionsClient.multiredditSubmissions(listOf("pics", "design", "architecture"))
val submissions = fetcher.fetchNext()

println(submissions.toString())
```


### Apps that are using ARAW:

[Redditoria](https://play.google.com/store/apps/details?id=com.kirkbushman.redditoria)

Help improve this section, open an issue subitting your implementation.


### License
This project is licensed under the MIT License

0 comments on commit 010dfe7

Please sign in to comment.