-
Notifications
You must be signed in to change notification settings - Fork 0
/
README
58 lines (38 loc) · 1.28 KB
/
README
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
ADShrinkLink
************
Adijx Service API written in Objective-C.
For more informations about Adjix go to
- http://adjix.com
Informations about the Api
- http://web.adjix.com/AdjixAPI.html
A nice Article about how to store your links to your Amazon S3 bucket can be found here
- http://adjix.com/jrzn
Initialize a ADShinklink Object
*******************************
ADShrinkLink *sl = [[ADShrinkLink alloc]initWithPartnerEmail:'your email' delegate:...];
- OR -
ADShrinkLink *sl = [[ADShrinkLink alloc]initWithPartnerID:'your partner id' delegate:...];
Available URL Shortener Methods
*****************
[sl shrinkLink:@"http://adjix.com"];
[sl shrinkLink:@"http://adjix.com" adType:ADRandomAdTypeOption];
[sl shrinkLink:@"http://adjix.com" ultraShort:YES];
[sl shrinkLink:@"http://adjix.com" adType:ADRandomAdTypeOption ultraShort:YES];
[sl shrinkLink:@"http://adjix.com" tokenOnly:YES];
[sl shrinkLink:@"http://adjix.com" adType:ADNoAdTypeOption tokenOnly:YES];
Delegate Method
***************
- (void)shrinkLinkResult:(NSString *)shrinkedURL
original:(NSString *)originalURL
error:(NSError *)error
{
if(error != nil)
{
//link shrinking has failed
NSLog(@"error %@", [error localizedDescription]);
}
else
{
//do something with your shrinked url
}
}