{"id":27210803,"url":"https://github.com/rekram1-node/blinkgo","last_synced_at":"2025-04-10T01:27:40.415Z","repository":{"id":65163437,"uuid":"584061506","full_name":"rekram1-node/blinkgo","owner":"rekram1-node","description":"Simple SDK for interacting with blink cameras, mainly: authentication, listing devices/networks/clips, and downloading clips from local storage","archived":false,"fork":false,"pushed_at":"2023-01-18T17:53:52.000Z","size":75,"stargazers_count":3,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"main","last_synced_at":"2024-06-20T22:35:49.879Z","etag":null,"topics":["blink","blinkpy","camera","golang-library","home-automation","sdk","sdk-go","security-camera"],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/rekram1-node.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2023-01-01T06:38:07.000Z","updated_at":"2024-04-04T20:55:06.000Z","dependencies_parsed_at":"2023-02-10T16:25:12.917Z","dependency_job_id":null,"html_url":"https://github.com/rekram1-node/blinkgo","commit_stats":null,"previous_names":[],"tags_count":12,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rekram1-node%2Fblinkgo","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rekram1-node%2Fblinkgo/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rekram1-node%2Fblinkgo/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rekram1-node%2Fblinkgo/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/rekram1-node","download_url":"https://codeload.github.com/rekram1-node/blinkgo/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248139722,"owners_count":21054162,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["blink","blinkpy","camera","golang-library","home-automation","sdk","sdk-go","security-camera"],"created_at":"2025-04-10T01:27:39.608Z","updated_at":"2025-04-10T01:27:40.401Z","avatar_url":"https://github.com/rekram1-node.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# blinkgo\n\n[![Go Report](https://goreportcard.com/badge/github.com/rekram1-node/blinkgo)](https://goreportcard.com/report/github.com/rekram1-node/blinkgo) [![license](http://img.shields.io/badge/license-MIT-red.svg?style=flat)](https://github.com/rekram1-node/blinkgo/blob/main/LICENSE) ![Build Status](https://github.com/rekram1-node/blinkgo/actions/workflows/main.yml/badge.svg)\n\n![blinkgo](docs/assets/blinkgo-logo.png)\n\nSimple library for interacting with blink cameras, mainly: authentication, listing devices/networks/clips, and downloading clips from local storage\n\nThis library was made for my purposes but if you would like to see more features open an issue and I will get to it\n\nCredit to MattTW, who's findings: [BlinkMonitorProtocol](https://github.com/MattTW/BlinkMonitorProtocol) I used to create this implementation\n\n## Features\n\n* authentication\n* read networks, cameras, sync modules\n* list videos\n* download videos\n\n## Getting Started\n\n### Prerequisites\n- [Go](https://go.dev/)\n\n### Getting blinkgo\n\nWith [Go module](https://github.com/golang/go/wiki/Modules) support, simply add the following import\n\n```go\nimport \"github.com/rekram1-node/blinkgo/blink\"\n```\n\nto your code, and then `go [build|run|test]` will automatically fetch the necessary dependencies.\n\nOtherwise, run the following to install the `blinkgo` library\n\n```shell\n$ go get -u github.com/rekram1-node/blinkgo/blink\n```\n\n## Documentation\n\nRead the [documentation](https://github.com/rekram1-node/blinkgo/blob/main/docs/docs.md) for usage instructions\n\n\n## Authentication\n\n#### Simple login and 2FA verify pin\n```go\npackage main\n\nimport (\n\t\"fmt\"\n\t\"log\"\n\n\t\"github.com/rekram1-node/blinkgo/blink\"\n)\n\nfunc main() {\n\temail := \"example@example.com\"\n\tpassword := \"PLEASE_DON'T_PLAINTEXT_REAL_PASSWORDS\"\n\n\t// returns account object with: email, password, uuid\n\t// this is required for login and once authenticated, used\n\t// for any blink operations\n\taccount := blink.NewAccount(user, pass)\n\n\tloginResp, err := account.Login()\n\n\tif err != nil {\n\t\tlog.Fatal(err)\n\t}\n\n\t// if blink wants a 2FA verification you must use the \n\t// verify pin operation\n\t// 2FA is not always required but it is typically\n\t// required first time on new device\n\tif loginResp.Account.AccountVerificationRequired {\n\t\tfmt.Print(\"Enter Pin: \")\n\t\tvar pin string\n\t\tfmt.Scanln(\u0026pin)\n\n\t\t// this returns a verify pin response that you can use\n\t\t// however, it is unneccessary for this example\n\t\tif _, err := account.VerifyPin(pin); err != nil {\n\t\t\tlog.Fatal(err)\n\t\t}\n\t}\n}\n```\n\n## Local-Storage\n\nI did not discover this myself, this is from [blinkpy](https://github.com/fronzbot/blinkpy)\n\nThe steps for pulling videos from local storage\n\n1. Query sync module for information regarding stored clips\n2. Upload the clips to the cloud\n3. Download the clips from a cloud URL\n\nBeware the upload/download sequence, there must be a waiting period between the two as the operation is not instantenous\n\n## Issues\n\nIf you have an issue: report it on the [issue tracker](https://github.com/rekram1-node/blinkgo/issues)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frekram1-node%2Fblinkgo","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frekram1-node%2Fblinkgo","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frekram1-node%2Fblinkgo/lists"}