-
Notifications
You must be signed in to change notification settings - Fork 0
/
NeetMSTranslator.podspec
44 lines (25 loc) · 1.22 KB
/
NeetMSTranslator.podspec
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
Pod::Spec.new do |s|
s.name = "NeetMSTranslator"
s.version = "0.0.4"
s.summary = "Microsoft Translator for iOS"
s.description = <<-DESC
Microsoft Translator for iOS
```obj-c
NMSTranslator *tra = [NMSTranslator sharedTranslator];
[tra initializeTranslatorWithClientID:@"your client ID"
clientSecret:@"your client secret"];
[tra transrateWithText:@"hello" to:@"ja" success:^(NSHTTPURLResponse *response, NSString *string) {
NSLog(@"succ: %@", string); // こんにちわ
} failure:^(NSHTTPURLResponse *response, NSData *data, NSError *error) {
NSLog(@"err: %@", error);
}];
```
DESC
s.homepage = "https://github.com/neethouse/NeetMSTranslator"
s.license = "MIT"
s.author = { "mironal" => "miro.gunp@gmail.com" }
s.platform = :ios, "6.0"
s.source = { :git => "https://github.com/neethouse/NeetMSTranslator.git", :tag => "0.0.4" }
s.source_files = "NeetMSTranslator/Classes/*.{h,m}"
s.requires_arc = true
end