php-snapchat
php-snapchat copied to clipboard
getSnaps() Using the new API?
Hey everyone! I'm struggling to get my snaps using the new API... When I login I get a converstations_response which it might be inside, however when I get loq/all_updates I get back this:
Array
(
[error] => 0
[data] => stdClass Object
(
[enable_video_transcoding_android] => 1
[birthday] => 1984-05-02
[score] => 25
[number_of_best_friends] => 7
[received] => 10
[logged] => 1
[requests] => Array
(
)
[sent] => 1
[story_privacy] => EVERYONE
[username] => *****
[device_token] =>
[cash_customer_id] => ******
[feature_settings] => stdClass Object
(
[front_facing_flash] => 1
[replay_snaps] => 1
[special_text] =>
[visual_filters] => 1
[smart_filters] => 1
[power_save_mode] => 1
[swipe_cash_mode] => 1
)
[user_id] => ******
[snap_p] => 0
[mobile_verification_key] => ******
[recents] => Array
(
[0] => *****
[1] => *****
[2] => *****
[3] => *****
[4] => *****
)
[notification_sound_setting] => OFF
[added_friends_timestamp] => 1419962337905
[allowed_to_use_cash] => NO_VERIFIED_PHONE
[is_cash_active] => 1
[searchable_by_phone_number] =>
[client_properties] => stdClass Object
(
[snapcash_tos_v2_accepted] => true
[snapcash_new_tos_accepted] => true
[square_tos_accepted] => false
)
[study_settings] => stdClass Object
(
[USE_VIDEO_STABILIZATION] => {"experimentId":"0","option":"off"}
[DELTA_RESPONSE] => {"experimentId":"1","CONVERSATIONS_DELTA":"on","FRIENDS_STORY_DELTA":"on"}
)
[snapchat_phone_number] => +447937985869
[auth_token] => *****
[image_caption] =>
[blocked_from_using_our_story] =>
[cash_provider] => SQUARE
[current_timestamp] => 1420469923966
[can_view_mature_content] =>
[email] => *****@live.com
[contacts_resync_request] => 1
[should_send_text_to_verify_number] =>
[should_call_to_verify_number] =>
[mobile] =>
)
)
I know this account has unopened snaps also because I sent some to it.
@KyleBoyer : You should get something similar to this back : https://github.com/JorgenPhi/php-snapchat/wiki/API-v2-Research#loqall_updates
All snap media is now part of a conversation, so everything should be inside conversation_messages.
You should get something similar to this back : https://github.com/JorgenPhi/php-snapchat/wiki/API-v2-Research#loqall_updates
All snap media is now part of a conversation, so everything should be inside conversation_messages.
@cuonic Perfect! I got that working but now, however downloading snaps has now become the problem... When I use the basic getMedia function and use the snap ID provided I get a 404 page response. I changed the url to /ph/blob and fixed that. However, is there only one api url to mark a snap as viewed? Because I'm currently using the /bq/update_snaps url.
@KyleBoyer : I have only seen the application using /bq/update_snaps for the moment.
I have only seen the application using /bq/update_snaps for the moment.
- Sounds good, I'll be using that then! Do you know what the MD5 conversations_checksum is for all_updates to only receive the conversations list?
- Does getMedia(for downloading a snap's data) use /ph/blob still? It currently works, however I want it to be as authentic looking as possible to avoid being locked/banned/blocked.
3. What data is posted where when you attempt to delete only one conversation thread?
Answers:
- ?
- Yes
- /loq/clear_conversation