DBAUTHTokenFromOAuth1Arg
Objective-C
@interface DBAUTHTokenFromOAuth1Arg : NSObject <DBSerializable, NSCopying>
Swift
class DBAUTHTokenFromOAuth1Arg : NSObject, DBSerializable, NSCopying
The TokenFromOAuth1Arg
struct.
This class implements the DBSerializable
protocol (serialize and
deserialize instance methods), which is required for all Obj-C SDK API route
objects.
-
The supplied OAuth 1.0 access token.
Declaration
Objective-C
@property (nonatomic, copy, readonly) NSString *_Nonnull oauth1Token;
Swift
var oauth1Token: String { get }
-
The token secret associated with the supplied access token.
Declaration
Objective-C
@property (nonatomic, copy, readonly) NSString *_Nonnull oauth1TokenSecret;
Swift
var oauth1TokenSecret: String { get }
-
Full constructor for the struct (exposes all instance variables).
Declaration
Objective-C
- (nonnull instancetype)initWithOauth1Token:(nonnull NSString *)oauth1Token oauth1TokenSecret: (nonnull NSString *)oauth1TokenSecret;
Swift
init(oauth1Token: String, oauth1TokenSecret: String)
Parameters
oauth1Token
The supplied OAuth 1.0 access token.
oauth1TokenSecret
The token secret associated with the supplied access token.
Return Value
An initialized instance.