{"id":44147365,"url":"https://github.com/orijtech/500px","last_synced_at":"2026-02-09T02:36:07.152Z","repository":{"id":57612821,"uuid":"90496903","full_name":"orijtech/500px","owner":"orijtech","description":"Go API client for 500px","archived":false,"fork":false,"pushed_at":"2017-05-24T09:18:47.000Z","size":357,"stargazers_count":3,"open_issues_count":4,"forks_count":0,"subscribers_count":4,"default_branch":"master","last_synced_at":"2024-06-20T16:39:19.551Z","etag":null,"topics":["500px","500px-api-client","golang","photos"],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/orijtech.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}},"created_at":"2017-05-06T23:27:16.000Z","updated_at":"2019-08-19T04:52:02.000Z","dependencies_parsed_at":"2022-09-03T08:32:35.298Z","dependency_job_id":null,"html_url":"https://github.com/orijtech/500px","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/orijtech/500px","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/orijtech%2F500px","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/orijtech%2F500px/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/orijtech%2F500px/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/orijtech%2F500px/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/orijtech","download_url":"https://codeload.github.com/orijtech/500px/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/orijtech%2F500px/sbom","scorecard":{"id":712352,"data":{"date":"2025-08-11","repo":{"name":"github.com/orijtech/500px","commit":"dc0cff87dab1acca3cfc1003d70d193a39904d3e"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":3,"checks":[{"name":"Code-Review","score":0,"reason":"Found 0/10 approved changesets -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project requires human code review before pull requests (aka merge requests) are merged.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#code-review"}},{"name":"Packaging","score":-1,"reason":"packaging workflow not detected","details":["Warn: no GitHub/GitLab publishing workflow detected."],"documentation":{"short":"Determines if the project is published as a package that others can easily download, install, easily update, and uninstall.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#packaging"}},{"name":"Token-Permissions","score":-1,"reason":"No tokens found","details":null,"documentation":{"short":"Determines if the project's workflows follow the principle of least privilege.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#token-permissions"}},{"name":"Dangerous-Workflow","score":-1,"reason":"no workflows found","details":null,"documentation":{"short":"Determines if the project's GitHub Action workflows avoid dangerous patterns.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#dangerous-workflow"}},{"name":"Pinned-Dependencies","score":-1,"reason":"no dependencies found","details":null,"documentation":{"short":"Determines if the project has declared and pinned the dependencies of its build process.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#pinned-dependencies"}},{"name":"Maintained","score":0,"reason":"0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#maintained"}},{"name":"Binary-Artifacts","score":10,"reason":"no binaries found in the repo","details":null,"documentation":{"short":"Determines if the project has generated executable (binary) artifacts in the source repository.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#binary-artifacts"}},{"name":"CII-Best-Practices","score":0,"reason":"no effort to earn an OpenSSF best practices badge detected","details":null,"documentation":{"short":"Determines if the project has an OpenSSF (formerly CII) Best Practices Badge.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#cii-best-practices"}},{"name":"Security-Policy","score":0,"reason":"security policy file not detected","details":["Warn: no security policy file detected","Warn: no security file to analyze","Warn: no security file to analyze","Warn: no security file to analyze"],"documentation":{"short":"Determines if the project has published a security policy.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#security-policy"}},{"name":"Fuzzing","score":0,"reason":"project is not fuzzed","details":["Warn: no fuzzer integrations found"],"documentation":{"short":"Determines if the project uses fuzzing.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#fuzzing"}},{"name":"Vulnerabilities","score":10,"reason":"0 existing vulnerabilities detected","details":null,"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}},{"name":"License","score":10,"reason":"license file detected","details":["Info: project has a license file: LICENSE:0","Info: FSF or OSI recognized license: Apache License 2.0: LICENSE:0"],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#license"}},{"name":"Signed-Releases","score":-1,"reason":"no releases found","details":null,"documentation":{"short":"Determines if the project cryptographically signs release artifacts.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#signed-releases"}},{"name":"Branch-Protection","score":0,"reason":"branch protection not enabled on development/release branches","details":["Warn: branch protection not enabled for branch 'master'"],"documentation":{"short":"Determines if the default and release branches are protected with GitHub's branch protection settings.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#branch-protection"}},{"name":"SAST","score":0,"reason":"SAST tool is not run on all commits -- score normalized to 0","details":["Warn: 0 commits out of 5 are checked with a SAST tool"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}}]},"last_synced_at":"2025-08-22T08:30:55.850Z","repository_id":57612821,"created_at":"2025-08-22T08:30:55.850Z","updated_at":"2025-08-22T08:30:55.850Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29254316,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-09T01:52:29.835Z","status":"online","status_checked_at":"2026-02-09T02:00:09.501Z","response_time":56,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":["500px","500px-api-client","golang","photos"],"created_at":"2026-02-09T02:36:07.045Z","updated_at":"2026-02-09T02:36:07.118Z","avatar_url":"https://github.com/orijtech.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# 500px\nGo API client for 500px\n\n## CLI\n```shell\n$ go get -u -v github.com/orijtech/500px/cmd/500px\n```\n\n### Uploading\n* By path\n```shell\n$ 500px upload --path ~/Desktop/hills.jpeg --description \"Run view\" --title \"Hills this evening\"\n```\n* From standard input\n```shell\n$ cat ~/Downloads/source.png | 500px upload --description \"Turn up\" --title \"issa turn up\" --tags vegas,evenings\n```\n\n## SDK custom usage\n\n* Preamble\n```go\nimport (\n\t\"fmt\"\n\t\"log\"\n\n\t\"github.com/orijtech/500px/v1\"\n)\n```\n\n* List photos\n```go\nfunc listPhotos() {\n\tclient, err := px500.NewClient()\n\tif err != nil {\n\t\tlog.Fatal(err)\n\t}\n\n\tpreq := new(px500.PhotoRequest)\n\tpreq.LimitPerPage = 10\n\tpreq.MaxPageNumber = 2\n\tpreq.Feature = px500.FeaturePopular\n\n\tpagesChan, cancelFn, err := client.ListPhotos(preq)\n\n\tif err != nil {\n\t\tlog.Fatal(err)\n\t}\n\n\tcount := uint64(0)\n\tfor page := range pagesChan {\n\t\tfmt.Printf(\"Page: #%d\\n\\n\", page.PageNumber)\n\t\tfor i, photo := range page.Photos {\n\t\t\tcount += 1\n\t\t\tfmt.Printf(\"#%d: %#v\\n\\n\", i, photo)\n\t\t}\n\n\t\tif count \u003e= 13 {\n\t\t\tcancelFn()\n\t\t}\n\t\tfmt.Printf(\"\\n\\n\")\n\t}\n}\n\n* Search for photos\n```go\nfunc searchForPhotos() {\n\tclient, err := px500.NewClient()\n\tif err != nil {\n\t\tlog.Fatal(err)\n\t}\n\n\tps := \u0026px500.PhotoSearch{\n\t\tTerm:          \"the universe\",\n\t\tLimitPerPage:  10,\n\t\tMaxPageNumber: 2,\n\t}\n\n\tpagesChan, cancelFn, err := client.SearchPhotos(ps)\n\n\tif err != nil {\n\t\tlog.Fatal(err)\n\t}\n\n\tcount := uint64(0)\n\tfor page := range pagesChan {\n\t\tfmt.Printf(\"Page: #%d\\n\\n\", page.PageNumber)\n\t\tif err := page.Err; err != nil {\n\t\t\tfmt.Printf(\"err: %v\\n\", err)\n\t\t\tcontinue\n\t\t}\n\n\t\tfor i, photo := range page.Photos {\n\t\t\tcount += 1\n\t\t\tfmt.Printf(\"#%d: %#v\\n\\n\", i, photo)\n\t\t}\n\n\t\tif count \u003e= 13 {\n\t\t\tcancelFn()\n\t\t}\n\t\tfmt.Printf(\"\\n\\n\")\n\t}\n}\n```\n\n* Retrieve a photo by ID\n```go\nfunc findPhotoByID() {\n\tclient, err := px500.NewClient()\n\tif err != nil {\n\t\tlog.Fatal(err)\n\t}\n\n\tphoto, err := client.PhotoByID(\"210717663\")\n\tif err != nil {\n\t\tlog.Fatal(err)\n\t}\n\n\tfmt.Printf(\"The Photo's info: %#v\\n\", photo)\n}\n\n```\n\n* Retrieve comments for a photo\n```go\nfunc retrieveCommentsForPhoto() {\n\tclient, err := px500.NewClient()\n\tif err != nil {\n\t\tlog.Fatal(err)\n\t}\n\n\tcr := \u0026px500.CommentsRequest{\n\t\tPhotoID: \"210717663\",\n\t\tNested:  true,\n\t}\n\n\tpagesChan, cancelFn, err := client.CommentsForPhoto(cr)\n\n\tif err != nil {\n\t\tlog.Fatal(err)\n\t}\n\n\tcount := uint64(0)\n\tfor page := range pagesChan {\n\t\tfmt.Printf(\"Page: #%d\\n\\n\", page.PageNumber)\n\t\tif err := page.Err; err != nil {\n\t\t\tfmt.Printf(\"err: %v\\n\", err)\n\t\t\tcontinue\n\t\t}\n\n\t\tfor i, comment := range page.Comments {\n\t\t\tcount += 1\n\t\t\tfmt.Printf(\"#%d: %#v\\n\\n\", i, comment)\n\t\t\tfor j, reply := range comment.Replies {\n\t\t\t\tfmt.Printf(\"\\t\\tReply: #%d reply: %#v\\n\\n\", j, reply)\n\t\t\t}\n\t\t}\n\n\t\tif count \u003e= 24 {\n\t\t\tcancelFn()\n\t\t}\n\t\tfmt.Printf(\"\\n\\n\")\n\t}\n}\n```\n\n* Upload a photo\n```go\nfunc uploadAPhoto() {\n\tclient, err := px500.NewOAuth1ClientFromEnv()\n\tif err != nil {\n\t\tlog.Fatal(err)\n\t}\n\n\tf, err := os.Open(\"./v1/testdata/sfPanorama.jpeg\")\n\tif err != nil {\n\t\tlog.Fatal(err)\n\t}\n\tdefer f.Close()\n\n\tphoto, err := client.UploadPhoto(\u0026px500.UploadRequest{\n\t\tBody:     f,\n\t\tFilename: \"billion dollar view\",\n\t\tPhotoInfo: \u0026px500.Photo{\n\t\t\tTitle: \"SF Panorama, Billion Dollar View\",\n\t\t\tISO:   \"iPhone 6\",\n\t\t\tTags:  []string{\"sf\", \"bayBridge\", \"California\", \"Piers\"},\n\t\t},\n\t})\n\tif err != nil {\n\t\tlog.Fatal(err)\n\t}\n\n\tfmt.Printf(\"Uploaded photo: %#v\\n\", photo)\n}\n```\n\n* Update a photo\n```go\nfunc updatePhoto() {\n\tclient, err := px500.NewOAuth1ClientFromEnv()\n\tif err != nil {\n\t\tlog.Fatal(err)\n\t}\n\n\tphoto, err := client.UpdatePhoto(\u0026px500.UpdateRequest{\n\t\tPhotoID: \"211020335\",\n\t\tContent: \u0026px500.Photo{\n\t\t\tTitle:  \"Updated in tests\",\n\t\t\tTags:   []string{\"tests\", \"api-client\", \"golang\"},\n\t\t\tCamera: \"iphone 6\",\n\t\t},\n\t})\n\tif err != nil {\n\t\tlog.Fatal(err)\n\t}\n\n\tfmt.Printf(\"Updated photo: %#v\\n\", photo)\n}\n```\n\n* Delete a photo \n```go\nfunc deletePhoto() {\n\tclient, err := px500.NewOAuth1ClientFromEnv()\n\tif err != nil {\n\t\tlog.Fatal(err)\n\t}\n\n\tif err := client.DeletePhoto(\"212664703\"); err != nil {\n\t\tlog.Fatal(err)\n\t}\n\n\tfmt.Printf(\"Successfully deleted the photo!\\n\")\n}\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Forijtech%2F500px","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Forijtech%2F500px","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Forijtech%2F500px/lists"}