Skip to content

Instantly share code, notes, and snippets.

@epool
Created January 5, 2018 22:40
Show Gist options
  • Select an option

  • Save epool/4f9c272b2ffb319a595248b0b69b97ed to your computer and use it in GitHub Desktop.

Select an option

Save epool/4f9c272b2ffb319a595248b0b69b97ed to your computer and use it in GitHub Desktop.

Revisions

  1. epool created this gist Jan 5, 2018.
    8 changes: 8 additions & 0 deletions kotlin-blocking.kt
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,8 @@
    val profile = Pikmail.getProfile("[email protected]").blockingGet()
    profile.profilePictureUrl
    profile.resizeProfilePictureUrl(500)
    profile.nickname
    // OR
    Pikmail.getProfilePictureUrl(email).blockingGet()
    Pikmail.getProfilePictureUrl(email, 500).blockingGet()
    Pikmail.getProfileNickname(email).blockingGet()