VUFlattr Class Reference
Inherits from | NSObject |
Conforms to | VUAuthRedirectDelegate |
Declared in | VUFlattr.h VUFlattr.m |
Overview
Connect to Flattr using the REST v2 API.
Most calls are asynchronous because they require network access. FlattrKit makes heavy use of blocks and is only compatible with iOS 5.
Tasks
-
+ flattr
Retrieve singleton instance.
-
– loginWithCompletionHandler:
Login
-
– loginWithCompletionHandler:scope:
Login
-
– setOAuthKey:secret:
Set the OAuth key and secret for your application.
Instance Methods
loginWithCompletionHandler:
Login
- (void)loginWithCompletionHandler:(VUFlattrLoginCompletionHandler)completionHandler
Parameters
- completionHandler
The completion handler is called when the login is finished. Depending on the success you will receive the logged in user object or an error.
Discussion
Login
Declared In
VUFlattr.h
loginWithCompletionHandler:scope:
Login
- (void)loginWithCompletionHandler:(VUFlattrLoginCompletionHandler)completionHandler scope:(VUFlattrScope)scope
Parameters
- completionHandler
The completion handler is called when the login is finished. Depending on the success you will receive the logged in user object or an error.
- scope
The scope controls which actions your application can perform using the API. By default, you will only have read access. You may request the ability to flattr things, perform operations on your own things or read private data and hidden things of a user.
Discussion
Login
Declared In
VUFlattr.h
setOAuthKey:secret:
Set the OAuth key and secret for your application.
- (void)setOAuthKey:(NSString *)key secret:(NSString *)secret
Parameters
- key
OAuth key
- secret
OAuth secret
Discussion
Set the OAuth key and secret for your application.
You need to register your application with Flattr to receive them: http://flattr.com/apps
Declared In
VUFlattr.h