Skip to content
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

Failed to use "getUserStreamDelimited" #49

Closed
tattsun opened this issue Sep 29, 2014 · 1 comment
Closed

Failed to use "getUserStreamDelimited" #49

tattsun opened this issue Sep 29, 2014 · 1 comment

Comments

@tattsun
Copy link

tattsun commented Sep 29, 2014

Hi.
I tried to use "getUserStreamDelimited", but I got an error. How to stream my user timeline?
When I used "getStatusesSampleDelimited", I got no error.

Code I tried to run:

let swifter = Swifter(consumerKey: consumerkey, consumerSecret: consumersecret, oauthToken: oauthtoken, oauthTokenSecret: oauthtokensecret)
swifter.getUserStreamDelimited(nil, stallWarnings: nil, includeMessagesFromFollowedAccounts: true, includeReplies: true, track: nil, locations: nil, stringifyFriendIDs: nil, progress: { (progress: Dictionary<String, JSONValue>?) in
            progress!.values.array.map({json in println(json)})
            }, stallWarningHandler: {
                (code: String?, mes: String?, percentFull: Int?) in
                if let warning = mes {
                    println("WARNING: ", warning)
                }
            }, failure: {(error: NSError) in
                let errmes = error.localizedDescription
                println("ERROR: ", errmes)
        })

I got an error below.

(ERROR: , HTTP Status 404: Not Found, Response: Unknown URL. See Twitter Streaming API documentation at http://dev.twitter.com/pages/streaming_api

)

Thanks.

@tattsun
Copy link
Author

tattsun commented Sep 29, 2014

opened pull request. #50

@tattsun tattsun closed this as completed Sep 29, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant