Security News
ESLint is Now Language-Agnostic: Linting JSON, Markdown, and Beyond
ESLint has added JSON and Markdown linting support with new officially-supported plugins, expanding its versatility beyond JavaScript.
github.com/neuegram/ghost
A Go library for Snapchat's API
$ go get github.com/neuegram/ghost
This library has been updated to keep up with Snapchat's changes. To use this library you need to signup to use the Casper API.
Register a casper account, and you can start using this library.
This library is in alpha at the moment, not everything has been tested (yet) but the basics still work. Feel free to contribute, this library is actively maintained and is making fast progress! :)
Use at your own risk.
package main
import (
"fmt"
"github.com/neuegram/ghost"
)
func main() {
casperClient := ghost.NewRawCasperClient("yourapikey","yourapisecret")
casperClient.Username = "yoursnapchatusername"
casperClient.Password = "yoursnapchatpassword"
casperClient.Debug = false
snapchat := ghost.NewAccount("yourgmailaccount@gmail.com", "yourgmailpassword", casperClient, false)
err := snapchat.Login()
if err != nil {
fmt.Println(err)
}
fmt.Println(snapchat.Updates())
}
package main
import (
"fmt"
"github.com/neuegram/ghost"
)
func main() {
casperClient := ghost.NewRawCasperClient("yourapikey","yourapisecret")
casperClient.Username = "yoursnapchatusername"
casperClient.Password = "yoursnapchatpassword"
casperClient.Debug = false
snapchat := ghost.NewAccount("yourgmailaccount@gmail.com", "yourgmailpassword", casperClient, false)
err := snapchat.Login()
mediaID, err := snapchat.Upload("yoursnap.jpg")
result, err := snapchat.Send(mediaID, []string{"teamsnapchat"}, 10)
if err != nil {
fmt.Println(err)
}
fmt.Println(result)
}
You can register a Snapchat account through the CLI.
Run $ go get github.com/neuegram/ghost/srcli
Run $ srcli -help
for more details.
If you would like to contribute, you can take a look at the documentation here and here.
To whoever at Snapchat came up with this header:
“X-Snapchat-Notice: Snapchat Private APIs - Unauthorized use is prohibited.”
And to whoever at Snapchat came up with this message:
We've noticed that you're using a third-party application to access Snapchat, putting yourself (and possibly your friends) at risk. Please change your password and stop using third-party applications when you access Snapchat.
This project is licensed under the MIT license, see the LICENSE file for more details.
FAQs
Unknown package
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
ESLint has added JSON and Markdown linting support with new officially-supported plugins, expanding its versatility beyond JavaScript.
Security News
Members Hub is conducting large-scale campaigns to artificially boost Discord server metrics, undermining community trust and platform integrity.
Security News
NIST has failed to meet its self-imposed deadline of clearing the NVD's backlog by the end of the fiscal year. Meanwhile, CVE's awaiting analysis have increased by 33% since June.