Sample application depends on UZTextView.reddift depends on MiniKeychain for saving access tokens.ayground/Resources in order to specify user account and your application informatin because reddift on Playground uses "Application Only OAuth". In more detail, check ayground package.īefore using, you have to copy test_config.json into.
#Playground sessions review reddit code#
In more detail, See my sample application, test code or Playground code included in this repository. OAuth2AppOnlyToken enabled to access reddit without human action in order to authorize in web browser apps.ĭo not use Oauth2AppOnlyToken in installed app in terms of security. You can use OAuth2AppOnlyToken when you want to write a code for test or personal script tool(such as CLI). Reddift generates http’s user-agent property using this JSON and application’s ist. You can check client_id at application tab. Redirect_uri must be same one you registered at. Rename reddift_ to reddift_config.json.Īnd fill out DeveloperName, redirect_uri and client_id. This JSON file saves application information to use OAuth. In following sample, redirect_uri is set to reddift://response. Create application(installed app) at Ĭreate new installed app via preference page at .Īnd then, check your app’s cliend_id and fill out redirect_uri for OAuth2.įor example, redirect_uri is set to myapp://response. # check out reddift and its submodules.Ĭheck that these libraries are checked out at each path correctly. You have to pay attention to use this library. If you need more features to this, please send pull requests to me.Includes almost all of functions, such as image thumbnails, browsing comments, search subreddits and so on.This application uses "reddift framework" in order to access.Includes a sample application(iOS only).Supports OAuth2(is not supported on tvOS currently).Reddift is Swift Reddit API Wrapper framework, and includes a browser is developed using the framework. Ios 8.4, osx 10.9, tvos 9.2, requires ARC