{"id":22454434,"url":"https://github.com/micronull/pocketbook-cloud-client","last_synced_at":"2025-03-27T13:15:58.474Z","repository":{"id":265949170,"uuid":"896884277","full_name":"micronull/pocketbook-cloud-client","owner":"micronull","description":"PocketBook Cloud API Client","archived":false,"fork":false,"pushed_at":"2024-12-12T18:27:38.000Z","size":24,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-02-01T17:30:33.545Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"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/micronull.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-12-01T14:44:17.000Z","updated_at":"2025-01-25T13:39:18.000Z","dependencies_parsed_at":"2025-02-01T17:39:06.361Z","dependency_job_id":null,"html_url":"https://github.com/micronull/pocketbook-cloud-client","commit_stats":null,"previous_names":["micronull/pocketbook-cloud-client"],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/micronull%2Fpocketbook-cloud-client","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/micronull%2Fpocketbook-cloud-client/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/micronull%2Fpocketbook-cloud-client/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/micronull%2Fpocketbook-cloud-client/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/micronull","download_url":"https://codeload.github.com/micronull/pocketbook-cloud-client/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245850360,"owners_count":20682647,"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":[],"created_at":"2024-12-06T07:07:50.693Z","updated_at":"2025-03-27T13:15:58.439Z","avatar_url":"https://github.com/micronull.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# pocketbook-cloud-client\nPocketBook Cloud API Client\n\n## Example\n\n```go\npackage main\n\nimport (\n\t\"context\"\n\t\"encoding/json\"\n\t\"log\"\n\n\tpbc \"github.com/micronull/pocketbook-cloud-client\"\n)\n\nfunc main() {\n\tcli := pbc.New(\n\t\tpbc.WithClientID(\"qNAx1RDb\"),\n\t\tpbc.WithClientSecret(\"K3YYSjCgDJNoWKdGVOyO1mrROp3MMZqqRNXNXTmh\"),\n\t)\n\tctx := context.Background()\n\n\tprvs, err := cli.Providers(ctx, \"you.mail.box@some.com\")\n\tif err != nil {\n\t\tlog.Fatal(err)\n\t}\n\n\tfor _, prv := range prvs {\n\t\treq := pbc.LoginRequest{\n\t\t\tShopID:   prv.ShopID,\n\t\t\tUserName: \"you.mail.box@some.com\",\n\t\t\tPassword: \"you.password\",\n\t\t\tProvider: prv.Alias,\n\t\t}\n\n\t\ttkn, err := cli.Login(ctx, req)\n\t\tif err != nil {\n\t\t\tlog.Fatal(err)\n\t\t}\n\n\t\tbooks, err := cli.Books(ctx, tkn.AccessToken, 0, 0)\n\t\tif err != nil {\n\t\t\tlog.Fatal(err)\n\t\t}\n\n\t\tif books.Total == 0 {\n\t\t\tcontinue\n\t\t}\n\n\t\tbooks, err = cli.Books(ctx, tkn.AccessToken, books.Total, 0)\n\t\tif err != nil {\n\t\t\tlog.Fatal(err)\n\t\t}\n\n\t\tjs, _ := json.MarshalIndent(books, \"\", \"  \")\n\n\t\tlog.Println(string(js))\n\t}\n}\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmicronull%2Fpocketbook-cloud-client","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmicronull%2Fpocketbook-cloud-client","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmicronull%2Fpocketbook-cloud-client/lists"}