Skip to content

Commit

Permalink
Adding custom timeline method for manual parameter entry (#231)
Browse files Browse the repository at this point in the history
  • Loading branch information
lukewakeford authored and meteochu committed Jun 12, 2018
1 parent 307458b commit 4c5d257
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions Sources/SwifterTimelines.swift
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,18 @@ public extension Swifter {
success?(json)
}, failure: failure)
}

/**
GET statuses/user_timeline
Returns Tweets (*: tweets for the user)
Returns a collection of the most recent Tweets posted by the user based on custom parameters.
*/
public func getTimeline(withCustomParameters params:Dictionary<String, Any>, success: SuccessHandler? = nil, failure: FailureHandler? = nil) {
self.getJSON(path: "statuses/user_timeline.json", baseURL: .api, parameters: params, success: { json, _ in
success?(json)
}, failure: failure)
}

/**
GET statuses/mentions_timeline
Expand Down

0 comments on commit 4c5d257

Please sign in to comment.