{"id":24761699,"url":"https://github.com/driebit/mod_ginger_tagger","last_synced_at":"2026-04-30T03:34:10.291Z","repository":{"id":30701968,"uuid":"34257991","full_name":"driebit/mod_ginger_tagger","owner":"driebit","description":"RFID interactions for Zotonic","archived":false,"fork":false,"pushed_at":"2015-09-15T10:57:01.000Z","size":188,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":20,"default_branch":"master","last_synced_at":"2025-06-29T08:38:03.554Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Erlang","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/driebit.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":"2015-04-20T12:05:41.000Z","updated_at":"2015-07-01T13:58:55.000Z","dependencies_parsed_at":"2022-08-26T11:21:29.862Z","dependency_job_id":null,"html_url":"https://github.com/driebit/mod_ginger_tagger","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/driebit/mod_ginger_tagger","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/driebit%2Fmod_ginger_tagger","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/driebit%2Fmod_ginger_tagger/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/driebit%2Fmod_ginger_tagger/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/driebit%2Fmod_ginger_tagger/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/driebit","download_url":"https://codeload.github.com/driebit/mod_ginger_tagger/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/driebit%2Fmod_ginger_tagger/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32453873,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-29T22:27:22.272Z","status":"online","status_checked_at":"2026-04-30T02:00:05.929Z","response_time":57,"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":[],"created_at":"2025-01-28T19:18:56.030Z","updated_at":"2026-04-30T03:34:05.284Z","avatar_url":"https://github.com/driebit.png","language":"Erlang","funding_links":[],"categories":[],"sub_categories":[],"readme":"mod_ginger_tagger\n=================\n\nGinger module for performing actions as a result of scanning RFID tags.\n\nUsage\n-----\n\nYou need to be authenticated with an OAuth2 client access token to perform API\ncalls. See [mod_oauth2](https://github.com/driebit/mod_oauth2) on how to obtain\nsuch a token.\n\n### Get user RFID\n\nGet user that an RFID belongs to:\n\n```http\nGET /rfids/{id} HTTP/1.1\nAuthorization: Bearer {Client OAuth2 token}\n```\n\n### Add RFID to user\n\nAttach a RFID to a user. This requires a [user access token](https://github.com/driebit/mod_oauth2#authorization-code-grant):\n\n```http\nPOST /me/rfids HTTP/1.1\nAuthorization: Bearer {User OAuth2 token}\nContent-Type: application/json\nAccept: application/json\n\n{\n    \"rfids\": [\n        \"AB123456\",\n        \"XZ987654\"\n    ]\n}\n```\n\n### Report an RFID action\n\nWhen an RFID tag has been scanned, report that action to the Tagger API. You\ncan attach any file contents either as a base64-encoded string in a JSON body\nor as a multipart/form element.\n\nAs JSON body:\n\n```http\nPOST /tagger/actions\nAuthorization: Bearer {Client OAuth2 token}\nContent-Type: application/json\nAccept: application/json\n\n{\n    \"rfids\": [\n        \"ABC12345\",\n        \"DEF78901\"\n    ],\n    \"attachment\": \"base64-encoded image contents\"\n}\n```\n\nYou also override the default object by specifying its id or URI:\n\n```http\nPOST /tagger/actions\nAuthorization: Bearer {Client OAuth2 token}\nContent-Type: application/json\nAccept: application/json\n\n{\n    \"rfids\": [\n        \"ABC12345\"\n    ],\n    \"object_id\": \"http://yoursite.com/\n}\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdriebit%2Fmod_ginger_tagger","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdriebit%2Fmod_ginger_tagger","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdriebit%2Fmod_ginger_tagger/lists"}