-
Notifications
You must be signed in to change notification settings - Fork 73
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
New Version #89
Comments
I'm on the 9.0.2.1 beta and a lot has changed, though posting stories shouldn't give any issues. |
$snapchat = new Snapchat('uname', 'password'); |
If you are using the 9.0+ user agent, you need to make sure you have Check out my working 9.0.2.0 login request here: http://github.com/liamcottle/snaplib
|
Logging in isnt the issue. Im able to get users etc... so i know im authenticated |
Make sure you send all the following data correctly. This hasn't changed at all compared to 8.1.1 User-Agent: /bq/retry_post_storyDescriptionUsed to post a story Request
Response
|
Sorry, just realized that my example was sending to single users. But i havent been able to do that either haha. |
But it also looks like a lot of those variables are not set by this library. Ie not in 'function setStory' in the snapchat class, nor 'function post' in the snapchat_agent one |
The library is not exactly up to date, if you want it to work you need to know what the actual application sends to the API, and then you have to add / remove parameters to each request in the library. Here is some API documentation : https://github.com/JorgenPhi/php-snapchat/wiki/API-v2-Research |
I'm getting real tired of snapchat and their api updates, I'll tell you that much |
Well the API updates are a good thing, it brings new features to the application for us to use and abuse. We just need to keep up with constantly analyzing the application's API calls. |
The latter is hard though, I do not mind it actually, but snapchat is not only adding user features but I have the feeling they are also making it harder for us to abuse every update. |
Any fix for this yet? $final1 = "http://-snip-watermark.php?filename=$value"; const VERSION = 'Snapchat/9.0.1.0'; |
I've been able to upload (get a 200 Response), but I havent been able to send single snaps or set my story. If anyone has been able to get this library working in the last couple days, please share. |
Are you uploading a JPG image ? Can you elaborate "I can login and update snaps and save snaps, but cannot upload or set a story. It just uploads a blank gray thumbnail and disappears when i try to click on it" |
Remember this lib is outdated guys, if you are mixing new headers with old endpoints, or old endpoints with new endpoints etc, it will not work. In the new versions of snapchat you no longer need to use upload and send but simply post to story. We need more information than that is given right now. |
Speaking of outdated, if anyone wants access to accept pull changes and
|
So what you are saying is my code should look more like this now?: It's still not working.. :( Gets contents of folder $directory = 'saved'; $value comes out as a string: |
Logging in with 9.0.2.0's API is pratically impossible for the Android version. They have started checking device tokens, so you need to fetch a valid device token before logging in, and there is a new "Authorization" header containing a Google OAuth2 token.... |
@cuonic isn't the google oath2 token optional, and by device token do you mean a device ID ? |
It's no longer option, if you don't provide the "ptoken" on login you The message doesn't change when adding or removing the Authorization header On 31/01/2015 18:49, Snowlav wrote:
|
hmm so we would need to fetch valid info first using fiddlr or something alike, and once logged in store auth token, that is if we are using the 9.0.2.0 api. |
Yeah, but that's not really a solution, you shouldn't have to run the On 31/01/2015 18:56, Snowlav wrote:
|
I like this challenge |
But I question if it's feasible |
is it possible to bring out an api lib for a previous no longer supported by snapchat version, without getting our accounts banned? |
Well using 8.1.1's API for the moment will probably work for a while, On 31/01/2015 19:05, Snowlav wrote:
|
Any other options? Long term solutions? |
I've seen the OAuth thing before it became mandatory in the beta, AFAIK it looks like signing up does not have to use OAuth though. And the @Snowlav We can only look inside the APK I guess, unless there are other solutions. |
@hako inside the APK you mean modding the apk or reverse engineering it in the hopes of finding a solution? |
As for logging in, I have noticed they have made the header If you pass a blank value in the I have made a successful login by using an already created bearer for the So, if we can make valid value for the |
All blobs are unencrypted? parties internally
|
I don't think story blobs are unencrypted, though I highly doubt they'd unencrypt those... However, I just checked the old user agent, and that returns unencrypted blobs as well... So they must be working on the API right now or something, because they were all encrypted about 20 minutes ago, and now they're not, so the server must pre-decrypt them all now.. ... and I guess the new update to the snapchat app will stop encrypting them. |
I was working on some things, and all of a sudden decryption was failing... so looked at blob data, not even encrypted... |
Some time ago they says they where going to release an API maybe something On Thursday, February 12, 2015, Liam Cottle [email protected]
|
Could be... But I highly doubt they're going to even release an API... Just all talk to keep us waiting... Because the whole point of snapchat is to send media that will be gone shortly after, and if they released a public API to download snaps, then it would make their whole system pointless. |
Looking into it a bit more, I reckon snapchat is sending ping requests to their server via their chat socket... and flagging accounts that's don't ping... Could be something to look into? |
Also when sending data, through charles proxy it looks like there is an extra parameter under data as seen here: http://s10.postimg.org/66bhe8ovd/namedata.png ---Edit: if (!$multipart) {
$data = http_build_query($data);
}else{
$datas = "--".$boundary."\r\n" . 'Content-Disposition: form-data; name="req_token"' . "\r\n\r\n" . self::hash($params[0], $params[1]) . "\r\n";
foreach ($data as $key => $value){
if($key == "req_token") continue;
if($key != 'data'){
$datas .= "--".$boundary."\r\n" . 'Content-Disposition: form-data; name="' . $key . '"' . "\r\n\r\n" . $value . "\r\n";
}else{
$datas .= "--".$boundary."\r\n" . 'Content-Disposition: form-data; name="data"; filename="data"'."\r\n" . 'Content-Type: application/octet-stream'."\r\n\r\n" . $value . "\r\n";
}
}
$data = $datas . "--".$boundary."--";
} |
@LinoSuarez can you please accept my friend request on skype? ;) |
@JorgenPhi add me too. bellamy-fan |
@LinoSuarez sent you a skype request with details, thanks |
@LinoSuarez Can you please add volcom526 |
@LinoSuarez add me too? cooney.adrian. Cheers for the good work guys! btw, http://slack.com is where it's at nowadays for chat! A group for this would go down a treat. |
See Gitter for chat group at github. https://gitter.im/ @JorgenPhi |
Okey I think you will be really interested in what I have to say here. I have ALMOST solved the whole snapchat downgrade problem. I can tell you all about how but first in need someone's help here. Now I have successfully installed snapchat 6.1.1 on my jailbroken iPhone 4 ios 7.1.2. When I open snapchat 6.1.1 there is no crash and I can successfully watch my friends story's and also load story's. The problem is that I can't upload story's, I can't load snaps that I got and I can't send snaps either. So If someone know how to fix that problem then I think we have solved the whole problem;) |
@niober This is using the Android API? |
@cuonic Hey, in your code 'Authorization: AidLogin 3976909495270287464:285036945524349568', I know the 3976909495270287464 should be the Android_id, but what is that 285036945524349568? Thanks! |
I obtained it by sniffing the GCM registration request, but according to this document (Page 4) the format is |
@cuonic Hmm, I used uploadDeviceConfig and got the device token something like 1440513696098*����blahblah, which seems not the number after the android_id. I read the same document too and I knew it said that number was device token. Were you using uploadDeviceConfig? Or "checkin" API? |
That's more a timestamp than a device token. I didn't use either of them endpoints, where is uploadDeviceConfig from ? |
@cuonic I tried to sniff all the data out and in for Google Play application and I found it could only send this Authorization: AidLogin android_id:unknown_number. In all the data comes back from Google Play I can not find out the same number as the unknown_number after android_id here. I think it should be something Google Play application generated but really curious about what that is... Tried to search all over the Internet but it is very little mentioned. |
I'm looking into it now, the second item is actually called |
@cuonic Great! Many thanks bro! Wow. This CheckinTask_securityToken seems to be written into the CheckinService.xml by Google Play Service. I will find out which writes this and keep you updated. |
the |
Has anyone figured out how the iOS authentication works yet or is it being discussed anywhere? |
@DevHex use this: https://github.com/mgp25/SC-API Wiki available with all documentation Regards |
Yeah I've seen it and it's great, but I want to find out how the X-Snapchat-Client-Auth-Token is generated on iOS without the need of a Google account. |
@DevHex you will need to reverse iOS app, use IDA or hopper |
Is there any solution to generate X-Snapchat-Client-Auth-Token and X-Snapchat-Client-Token, please help me, thanks, my skype: siverrally |
In snapchat_agent the version needs to be changed to '9.0.1'
Additionally, has anyone been able to post stories since the update?
The text was updated successfully, but these errors were encountered: