Skip to content
This repository has been archived by the owner on Dec 18, 2022. It is now read-only.

unable to get story thumbnail #10

Open
ruozi opened this issue Aug 30, 2015 · 8 comments
Open

unable to get story thumbnail #10

ruozi opened this issue Aug 30, 2015 · 8 comments

Comments

@ruozi
Copy link

ruozi commented Aug 30, 2015

When I use SnapchatKit to fetch story media thumbnail, I have tried such methods:

  1. [SKStory load]
  2. [[SKClient sharedClient] loadStoryThumbnailBlob:story completion:^(id object, NSError *error) {
    }];
  3. SKStory.thumbURL

But there is error like this: Load story error: Error Domain=SnapchatKit Code=1 "Unknown blob format" UserInfo=0x7fd878e27b80 {NSLocalizedDescription=Unknown blob format, NSLocalizedFailureReason=Unknown blob format}

when I fetch data from SKStory properth "thumbURL", the format seems not correct, I noticed that SKStory have some encryption properties, Maybe be data is encrypted?

How to fetch the story thumbnails and media.

@NSExceptional
Copy link
Owner

Tryyyyy using pod 'SnapchatKit', :git => 'https://github.com/ThePantsThief/SnapchatKit.git'

I think it's a bug I fixed but haven't updated the pod with yet

Tanner Bennett

On Aug 30, 2015, at 1:45 AM, Ruozi [email protected] wrote:

When I use SnapchatKit to fetch story media thumbnail, I have tried such methods:

[SKStory load]
[[SKClient sharedClient] loadStoryThumbnailBlob:story completion:^(id object, NSError *error) { }];
SKStory.thumbURL
But there is error like this: Load story error: Error Domain=SnapchatKit Code=1 "Unknown blob format" UserInfo=0x7fd878e27b80 {NSLocalizedDescription=Unknown blob format, NSLocalizedFailureReason=Unknown blob format}

when I fetch data from SKStory properth "thumbURL", the format seems not correct, I noticed that SKStory have some encryption properties, Maybe be data is encrypted?

How to fetch the story thumbnails and media.


Reply to this email directly or view it on GitHub.

@ruozi
Copy link
Author

ruozi commented Aug 30, 2015

I just use git clone to get code from 'https://github.com/ThePantsThief/SnapchatKit.git' and copy the file in "Pod" folder.

Then I use this method:
[story loadThumbnail:^(NSError *error) {}];

and get the error message: Error Domain=SnapchatKit Code=1 "Unknown blob format" UserInfo=0x7fe965d39350 {NSLocalizedDescription=Unknown blob format, NSLocalizedFailureReason=Unknown blob format}

But the same methods in SKSnap class works well.

@NSExceptional
Copy link
Owner

Odd, I'll take a look and get back to you

Tanner Bennett

On Aug 30, 2015, at 2:21 AM, Ruozi [email protected] wrote:

I just use git clone to get code from 'https://github.com/ThePantsThief/SnapchatKit.git' and copy the file in "Pod" folder.

Then I use this method:
[story loadThumbnail:^(NSError *error) {}];

and get the error message: Error Domain=SnapchatKit Code=1 "Unknown blob format" UserInfo=0x7fe965d39350 {NSLocalizedDescription=Unknown blob format, NSLocalizedFailureReason=Unknown blob format}

But the same methods in SKSnap class works well.


Reply to this email directly or view it on GitHub.

@ruozi
Copy link
Author

ruozi commented Aug 30, 2015

Thx,And I love this kit

@transitive-bullshit
Copy link

Looks like Tanner fixed the blob format parsing in this commit. @ruozi I'd retry with current master.

@ruozi
Copy link
Author

ruozi commented Sep 1, 2015

I update SnapchatKit and when I use [SKstory loadThumbnail] method, I still got error with description "Error initializing blob with data" @fisch0920

@ruozi
Copy link
Author

ruozi commented Sep 1, 2015

story blob has been fixed but story thumbblob seems not = =!

@NSExceptional
Copy link
Owner

I'll get to that next :) much of this library is untested, thanks!

Tanner Bennett

On Aug 31, 2015, at 9:56 PM, Ruozi [email protected] wrote:

story blob has been fixed but story thumbblob seems not = =!


Reply to this email directly or view it on GitHub.

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

No branches or pull requests

3 participants