Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Add /config endpoint

  • Loading branch information...
commit 88f111fc640539d2f7468e89247c34a3ad4c7655 1 parent 7fadfe1
@henrikhodne henrikhodne authored
Showing with 5 additions and 0 deletions.
  1. +1 −0  src/TravisAPI.h
  2. +4 −0 src/TravisAPI.m
View
1  src/TravisAPI.h
@@ -18,5 +18,6 @@
- (id)initWithHTTPClient:(TravisHTTPClient *)HTTPClient;
- (RACSignal *)fetchBuildWithID:(NSNumber *)buildID forRepository:(NSString *)slug;
+- (RACSignal *)fetchConfig;
@end
View
4 src/TravisAPI.m
@@ -33,4 +33,8 @@ - (RACSignal *)fetchBuildWithID:(NSNumber *)buildID forRepository:(NSString *)sl
return [[self HTTPClient] requestWithMethod:TravisHTTPClientMethodGET path:path parameters:nil];
}
+- (RACSignal *)fetchConfig {
+ return [[self HTTPClient] requestWithMethod:TravisHTTPClientMethodGET path:@"/config" parameters:@{}];
+}
+
@end
Please sign in to comment.
Something went wrong with that request. Please try again.