File tree Expand file tree Collapse file tree 1 file changed +10
-0
lines changed
Expand file tree Collapse file tree 1 file changed +10
-0
lines changed Original file line number Diff line number Diff line change @@ -95,6 +95,11 @@ public class FoursquareAPIClient {
9595 self . version = version
9696 }
9797
98+ /// Request API
99+ /// - parameter path: API path e.g. photos/add
100+ /// - parameter method: .get (default) or .post
101+ /// - parameter parameter: Parameters as a dictinary
102+ /// - parameter completion: Completion handler
98103 public func request( path: String ,
99104 method: HTTPMethod = . get,
100105 parameter: [ String : String ] ,
@@ -150,6 +155,11 @@ public class FoursquareAPIClient {
150155 task. resume ( )
151156 }
152157
158+ /// Upload jpeg image
159+ /// - parameter path: API path e.g. photos/add
160+ /// - parameter parameter: Parameters as a dictinary
161+ /// - parameter imageData: Should be "image/jpeg". Max 5MB
162+ /// - parameter completion: Completion handler
153163 public func upload( path: String ,
154164 parameter: [ String : String ] ,
155165 imageData: Data ,
You can’t perform that action at this time.
0 commit comments