Skip to content

Commit 484e1af

Browse files
committed
Add method document
1 parent 55d76b2 commit 484e1af

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

FoursquareAPIClient/FoursquareAPIClient.swift

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff 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,

0 commit comments

Comments
 (0)