Skip to content
This repository was archived by the owner on Jan 16, 2021. It is now read-only.

Commit 16121e2

Browse files
author
Zachary Drayer
committed
Document the behavior of -[PF_Twitter init]
It is useful to be able to create a standalone instance of `PFTwitter` to make authenticated Twitter API calls without having to link a Twitter account to a Parse account or require Twitter login.
1 parent f921eb1 commit 16121e2

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

ParseTwitterUtils/PF_Twitter.h

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,15 @@ NS_ASSUME_NONNULL_BEGIN
2121
*/
2222
@interface PF_Twitter : NSObject
2323

24+
/**
25+
An instance of `PF_Twitter` configured to access device Twitter accounts with Accounts.framework,
26+
and remote Twitter accounts - if no accounts are found locally - through a built-in webview.
27+
28+
After setting `consumerKey` and `consumerSecret`, authorization to Twitter accounts can be requested with
29+
`authorizeInBackground`, and then revoked with its opposite, `deauthorizeInBackground`.
30+
*/
31+
- (instancetype)init;
32+
2433
/**
2534
Consumer key of the application that is used to authorize with Twitter.
2635
*/

0 commit comments

Comments
 (0)