commit | author | age
|
a0a843
|
1 |
// |
H |
2 |
// TWTRAPIServiceConfig.h |
|
3 |
// TwitterCore |
|
4 |
// |
|
5 |
// Copyright (c) 2015 Twitter Inc. All rights reserved. |
|
6 |
// |
|
7 |
|
|
8 |
@protocol TWTRAPIServiceConfig <NSObject> |
|
9 |
|
|
10 |
@property (nonatomic, readonly, copy) NSString *apiHost; |
|
11 |
@property (nonatomic, readonly, copy) NSString *apiScheme; |
|
12 |
|
|
13 |
/** |
|
14 |
* A unique name to assign to this service. It is recommended |
|
15 |
* that reverse dns be used to make the name unique. |
|
16 |
*/ |
|
17 |
@property (nonatomic, readonly, copy) NSString *serviceName; |
|
18 |
|
|
19 |
@end |
|
20 |
|
|
21 |
FOUNDATION_EXPORT NSURL *TWTRAPIURLWithPath(id<TWTRAPIServiceConfig> apiServiceConfig, NSString *path); |
|
22 |
|
|
23 |
FOUNDATION_EXPORT NSURL *TWTRAPIURLWithParams(id<TWTRAPIServiceConfig> apiServiceConfig, NSString *path, NSDictionary *params); |