Giter Club home page Giter Club logo

node-snapchat's People

Contributors

emilkje avatar gfauchart avatar jesperlindstrom avatar jladuval avatar kenany avatar lucasad avatar nykac avatar wtfaremyinitials avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

node-snapchat's Issues

Conversations

How should we implement this.
If we use the /loq/login and /loq/all_updates we'll break compatibility with existing code. Perhaps we could emulate the old sync and login objects.

Pictures not downloading

Hey, in the download_pending_snaps.js example, the pictures that are downloaded end up being completely empty.

The code is giving me an error : "stream.js:94 throw err; //Unhandled stream error in pipe."

I tried logging "blob" and the first line says "_connecting:false" which seems like a problem.

Client#upload returns an error message from Google App Engine

Using the following:

var fs = require('fs');
var snapchat = new (require('snapchat').Client)();

snapchat.login(USERNAME, PASSWORD);
var stream = fs.createReadStream('sloth.jpg');
snapchat.upload(stream, FRIEND);

I receive the following error:

<html><head>
<meta http-equiv="content-type" content="text/html;charset=utf-8">
<title>500 Server Error</title>
</head>
<body text=#000000 bgcolor=#ffffff>
<h1>Error: Server Error</h1>
<h2>The server encountered an error and could not complete your request.<p>If the problem persists, please <A HREF="http://code.google.com/appengine/community.html">report</A> your problem and mention this error message and the query that caused it.</h2>
<h2></h2>
</body></html>

Any ideas why? Have they changed the endpoint for uploads?

Add story support

We just need to figure out how to decrypt the data with node/openssl.
In php it's MCRYPT_RIJNDAEL_128 in CBC mode.

Line 202 snapchat.js

Reads var ts = ' '+Date.now();
While other lines read var ts = Date.now().toString;
Not sure if this is a bug or necessary thanks.

New snaps are not valid images.

node example/download_pending_snaps.js puts snaps in images, but they will not open in Preview or Photoshop for me on OS X.

Did Snapchat change their encryption key?

Buffer( ) is deprecated.

Buffer( ) from line 36 is deprecated so i should use the Buffer.alloc(), Buffer.allocUnsafe(), or Buffer.from() methods instead. I tried but "TypeError [ERR_INVALID_ARG_TYPE]: The "size" argument must be of type number. Received type string ('4d3032636e5135314a693937...)"
So i don't know how to fix that.

More Examples

Can you please add more examples like one showing how to send snaps. This is a great project and I appreciate your work. Thanks in Advance.

No upload example

I can't seem to get uploads working, is there an example i can take a look at somewhere?

The time of client.send is hardcoded to 3.

Hey. Loving the library.

I noticed that in client.js#send there's a hardcoded time-value on line 130, so all imagesnaps sent are 3 seconds in duration.
Thought you oughta know :)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.