-
-
Notifications
You must be signed in to change notification settings - Fork 1.7k
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
Get image from DM #463
Get image from DM #463
Conversation
Add function getimg to download immage attached to direct messages. Modified function http.
I'm a little unsure what the purpose of this is. What Twitter API method is this for? |
It's not for a Twitter method per se, it's just to have a way to get and decode images sent in a direct message. I think is handy to "have it all" in one lib. From twittercommunity.com |
hello.twitter trend topic system update?.my system is no work.please help me |
@aliriza0 if you are having problems please open a new issue. |
@ericrkl I'm thinking about if this is the best approach, if it would make more sense to have a method that returns a signed URL for the developer to download as they choose, or some other approach. |
As long as there’s a way to get the image from the URL in the end. I made a social media customer care system for clients to interact with their audience (like Hoot Suite or Sprout), and it’s common for that audience to send some photo(s) as proof of some kind, via direct message (proof of purchase, or payment, or a photo from a damaged luggage to an airline, etc). These photos need to be downloaded and kept as a record of a conversation with some person. So it’s a very useful and commonly used operation. —
|
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.
I think the best way to get this added is to copy http
to a new file
method. The two methods will be relatively similar except the file
method will take a full URL and return the response without JSON Decoding. This will leave http
untouched and avoid all the messy if
in this current version of the PR.
Great.
…---
Eric R Kelly
Whatsapp +1(702) 879-7944
On Feb 23, 2017, at 13:40, Abraham Williams ***@***.***> wrote:
@abraham requested changes on this pull request.
I think the best way to get this added is to copy http to a new file method. The two methods will be relatively similar except the file method will take a full URL and return the response without JSON Decoding. This will leave http untouched and avoid all the messy if in this current version of the PR.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub <#463 (review)>, or mute the thread <https://github.com/notifications/unsubscribe-auth/AGqztI41FVRmpBuKLY_Day14x4wi1Ux3ks5rfeDJgaJpZM4IL_UU>.
|
Just to let you know that I’m testing the new Twitter 30 day search API (now in private beta).
I’m using the PHP twitteroauth and first tests with GET method function perfectly.
—
Eric R Kelly
Whatsapp +1 (702) 879-7944
|
Does the "file" method proposal is still the preferred solution? I need to download DM files, if this is still valid, I could submit a PR in the next days. |
Add function getimg to download immage attached to direct messages.
Modified function http.