
Product
Announcing Socket Certified Patches: One-Click Fixes for Vulnerable Dependencies
A safer, faster way to eliminate vulnerabilities without updating dependencies
Instagram client in Go
go get gopkg.in/nowk/go-instagram.v0
import "log"
import "gopkg.in/nowk/go-instagram.v0"
func main() {
api := instagram.NewClient(<...access_token...>)
data, err := api.Users.SelfFeed()
if err != nil {
log.Fatalf("fatal: %s", err)
}
if data.Meta.code != 200 {
log.Fatalf("error: %s: %s", data.Meta.ErrorType, data.Meta.ErrorMessage)
}
for _, media := range data.Data {
log.Print(media.User.FullName)
}
}
Return a new client
api := instagram.NewClient(<...access_token...>)
Endpoints are organized and mapped based on the documentation http://instagram.com/developer/endpoints/
api.Users // => Users Endpoints
api.Relationships // => Relationships Endpoints
api.Media // => Media Endpoints
api.Comments // => Comments Endpoints
api.Likes // => Likes Endpoints
api.Tags // => Tags Endpoints
api.Locations // => Locations Endpoints
api.Geographies // => Geographies Endpoints
go-instagram comes with an included jsons package which contains all the structures for the returned JSON payloads. This package is available to allow you to create your own go channels.
api.SetSignedHeader("secret", "192.168.0.1", "192.168.0.2")
MIT
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.

Product
A safer, faster way to eliminate vulnerabilities without updating dependencies

Product
Reachability analysis for Ruby is now in beta, helping teams identify which vulnerabilities are truly exploitable in their applications.

Research
/Security News
Malicious npm packages use Adspect cloaking and fake CAPTCHAs to fingerprint visitors and redirect victims to crypto-themed scam sites.