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

\\PSN\Messaging->GetAttachment assumes JPEG #4

Closed
ghost opened this issue Aug 19, 2016 · 5 comments
Closed

\\PSN\Messaging->GetAttachment assumes JPEG #4

ghost opened this issue Aug 19, 2016 · 5 comments

Comments

@ghost
Copy link

ghost commented Aug 19, 2016

It is possible for the image to be a PNG instead of a JPG, and will fail if these images are mismatched.

@Tustin
Copy link
Owner

Tustin commented Aug 19, 2016

Honestly, most likely not. However, JB was the one who implemented this so he might be able to give a better response. I assume there's a check in the actual API that only allows the JPG format.

@jbdabes
Copy link
Collaborator

jbdabes commented Aug 26, 2016

The default option is JPG - however I'll tweak the code today to look for the correct file extension (and set the file type/mime type accordingly).

@Octolus
Copy link
Collaborator

Octolus commented Sep 14, 2016

Can't get it to work for some reason.

echo $message->GetImageAttachment($_GET['id'], $message->messageUid);

$_GET['id'] equals ~1280FCA18BE92710.7DB2A519183242AD

@jbdabes
Copy link
Collaborator

jbdabes commented Sep 16, 2016

@TechPulse is it trying to return any data at all? Or is it a flat out error?

@gorcheque
Copy link

I figured out how to get text of last text message. I do it like this:

$obj_vars = get_object_vars($messages->GetAll());
print $obj_vars["threads"][0]->latestMessageEventDetail->messageDetail->body;

Could you please explain how to get attachement of the last image message?
I did not find any how to about it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants