A request object is constructed with one of the factory methods. Most API requests should be constructed using APIRequestWithAction: or APIRequestWithAction:params: methods. The newly created request must then be passed as a parameter to [ VPNUTransport sendRequest:error: ] method.
Extends: NSObject
Declared in: VPNURequest.h
+ (instancetype)APIRequestWithAction:(NSString *)action;
+ (instancetype)APIRequestWithAction:(NSString *)action params:(NSDictionary *)params;
The newly constructed VPNURequest object or nil if construction fails.
+ (instancetype)authRequestWithAction:(NSString *)action;
+ (instancetype)authRequestWithAction:(NSString *)action params:(NSDictionary *)params;
The newly constructed VPNURequest object or nil if construction fails.
+ (void)setApplicationBundleID:(NSString *)bundleID;
+ (void)setApplicationID:(NSString *)appID;
+ (void)setApplicationSecret:(NSString *)appSecret;
- (id)parameterObjectForKey:(NSString *)key;
The value object associated with key in the parameters dictionary of the request, or nil if no object is associated with key.
- (void)setParameterObject:(id)object forKey:(NSString *)key;
@property (nonatomic) NSTimeInterval timeoutInterval;
The timeout interval specifies the limit on the idle interval alloted to a request in the process of loading. Default value is 10.0.
@property (nonatomic) BOOL useSession;
Indicates if the request should use current session. Default value is YES.