VPNUTransport
.A request object is constructed with one of the factory methods. Most API requests should be constructed using APIRequestWithAction
: or APIRequestWithAction
:andParams: methods. The newly created request must then be passed as a parameter to sendRequest
:error: or cURLSendRequest
:error: methods of VPNUTransport
class instance.
Extends: NSObject
Declared in: VPNURequest.h
+ (instancetype)APIRequestWithAction:(NSString *)action;
APIRequestWithAction
:andParams: but does not use any extra parameters.Available in Mac OS X v10.7. Available in iOS v7.0.
+ (instancetype)APIRequestWithAction:(NSString *)action andParams:(NSDictionary *)params;
VPNURequest
object for API-related routines using a specified action.nil
.nil
.The newly constructed VPNURequest
object or nil
if construction fails.
Available in Mac OS X v10.7. Available in iOS v7.0.
+ (instancetype)authRequestWithAction:(NSString *)action;
authRequestWithAction
:andParams: but does not use any extra parameters.Available in Mac OS X v10.7. Available in iOS v7.0.
+ (instancetype)authRequestWithAction:(NSString *)action andParams:(NSDictionary *)params;
VPNURequest
object for authorization-related routines using a specified action.nil
.nil
.The newly constructed VPNURequest
object or nil
if construction fails.
Available in Mac OS X v10.7. Available in iOS v7.0.
+ (void)setApplicationBundleID:(NSString *)bundleID;
+ (void)setApplicationID:(NSString *)appID;
+ (void)setApplicationSecret:(NSString *)appSecret;
- (id)parameterObjectForKey:(NSString *)key;
nil
.The value object associated with key
in the parameters dictionary of the request, or nil
if no object is associated with key
.
Available in Mac OS X v10.7. Available in iOS v7.0.
- (void)setParameterObject:(id)object forKey:(NSString *)key;
key
. Must be of NSString
or NSNumber
class. Must not be nil
.nil
.Available in Mac OS X v10.7. Available in iOS v7.0.
@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.
Available in Mac OS X v10.7. Available in iOS v7.0.
@property (nonatomic) BOOL useSession;
Indicates if the request should use current session. Default value is YES
.
Available in Mac OS X v10.7. Available in iOS v7.0.