New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Convert list.rb, list_members.rb, and list_subscribers.rb to new Twitter API #154
Closed
Closed
Changes from all commits
Commits
Show all changes
15 commits
Select commit
Hold shift + click to select a range
1aebd40
Updates for new Twitter API changes: Add sferik's list_create changes…
erebor 79fa27e
Merge branch 'master' into lists
erebor 14c8f77
Update list() and list_update() to use new Twitter API call format
erebor ed0d0b7
Add support for numeric user_id or list_id as arguments
erebor 299fcb1
Convert #list_timeline, memberships, and subscriptions to new Twitter…
erebor 1c0096c
Use util functions to merge user and list identifiers into options ha…
erebor 967566e
Fix typo
erebor cddb6fb
Fix #list_members to use new Twitter API
erebor f43ba61
Fix some rdoc comments
erebor 2f8dfb5
convert list_add_member and list_add_members to new Twitter API; docu…
erebor c044f91
Finish converting list_add_members, list_remove_member, and is_list_m…
erebor 0026bd6
Convert list_subscribers.rb to new Twitter API, and document and test…
erebor e524313
Cleanup docs a bit
erebor ba8b4ab
Add docs showing list_update called with no user param)
erebor 1ab8662
Repair indentation muckup for yard docs
erebor File filter
Filter by extension
Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It looks like you removed the ability to not pass in a user, both from the documentation and from the code itself. This interface needs to be maintained.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
On Sun, Apr 10, 2011 at 2:21 AM, sferik
reply@reply.github.com
wrote:
Are you talking about for the lists method? I don't see what I broke
there. It still works with or without a username (just tried it to
make sure again). This line:
merge_user_into_options!(user, options) if user
passes in the user if specified, and if it's not specified, Twitter
just returns the lists for the authenticated user (which is how it
worked before).
And the documentation still shows the no-user-as-param option:
is the same as the user whose lists are being returned.
# @overload lists(options={})
# @param options [Hash] A customizable set of options.
# @option options [Integer] :cursor (-1) Breaks the results into
pages. Provide values as returned in the response objects's
next_cursor and previous_cursor attributes to page back and forth in
the list.
# @return [Hashie::Mash]
# @example List the authenticated user's lists
# Twitter.lists
It's the first one.
But it's late, and I may just be missing it entirely.