FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
IRWebAPIKit/IRWebAPIHelpers.h at develop · iridia/IRWebAPIKit · GitHub
iridia
IRWebAPIKit
Repository navigation
Code
Issues
Pull requests
Actions
Projects
Wiki
Security and quality
Insights
Expand file tree
Breadcrumbs
IRWebAPIKit
/
IRWebAPIHelpers.h
Copy path
More file actions
More file actions
Latest commit
History
History
History
61 lines (39 loc) · 1.86 KB
Breadcrumbs
IRWebAPIKit
/
IRWebAPIHelpers.h
Copy path
File metadata and controls
61 lines (39 loc) · 1.86 KB
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
//
//
IRWebAPIHelpers.h
//
IRWebAPIKit
//
//
Created by Evadne Wu on 11/21/10.
//
Copyright 2010 Iridia Productions. All rights reserved.
//
#
import
"
IRWebAPIKit.h
"
#
if
TARGET_OS_IPHONE
#
import
<
UIKit/UIDevice.h
>
#
import
<
MobileCoreServices/MobileCoreServices.h
>
#
else
#
import
<
CoreServices/CoreServices.h
>
#
endif
#
import
<
Foundation/Foundation.h
>
#
import
<
CoreFoundation/CoreFoundation.h
>
#
import
<
CommonCrypto/CommonHMAC.h
>
#
pragma mark
Request Arguments Helpers
extern
BOOL
IRWebAPIKitValidResponse
(
id
inObject);
extern
NSString
*
IRWebAPIKitStringValue
(
id
<
NSObject
> inObject);
extern
id
IRWebAPIKitWrapNil
(
id
inObjectOrNil);
extern
id
IRWebAPIKitNumberOrNull
(
NSNumber
*aNumber);
#
pragma mark
Encoding, Decoding and Conversion
extern
NSString
*
IRWebAPIKitRFC3986EncodedStringMake
(
id
<
NSObject
> inObject);
extern
NSString
*
IRWebAPIKitRFC3986DecodedStringMake
(
id
<
NSObject
> inObject);
extern
NSString
*
IRWebAPIKitBase64StringFromNSDataMake
(
NSData
*inData);
extern
NSString
*
IRWebAPIStringByDecodingXMLEntities
(
NSString
*inString);
#
pragma mark
Randomness and Order
extern
NSString
*
IRWebAPIKitTimestamp
(
void
);
extern
NSString
*
IRWebAPIKitNonce
(
void
);
#
pragma mark
Crypto Helpers
extern
NSString
*
IRWebAPIKitOAuthSignatureBaseStringMake
(
NSString
*inHTTPMethod,
NSURL
*inBaseURL,
NSDictionary
*inQueryParameters);
extern
NSString
*
IRWebAPIKitHMACSHA1
(
NSString
*inConsumerSecret,
NSString
*inTokenSecret,
NSString
*inPayload);
#
pragma mark
Type Helpers
extern
NSString
*
IRWebAPIKitMIMETypeOfExtension
(
NSString
*inExtension);
#
pragma mark
URL Helpers
extern
NSString
*
IRWebAPIRequestURLQueryParametersStringMake
(
NSDictionary
*inQueryParameters,
NSString
*inSeparator);
extern
NSURL
*
IRWebAPIRequestURLWithQueryParameters
(
NSURL
*inBaseURL,
NSDictionary
*inQueryParametersOrNil);
extern
NSDictionary
*
IRQueryParametersFromString
(
NSString
*aQueryString);
Back
|
FazBrowse Home
|
New Git URL