{"id":19081462,"url":"https://github.com/droduit/webpush-api","last_synced_at":"2025-02-22T06:13:35.497Z","repository":{"id":84412970,"uuid":"205724724","full_name":"droduit/webpush-api","owner":"droduit","description":null,"archived":false,"fork":false,"pushed_at":"2019-09-02T07:32:44.000Z","size":467,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-01-02T20:19:05.400Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/droduit.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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":"2019-09-01T19:47:19.000Z","updated_at":"2019-09-02T07:32:46.000Z","dependencies_parsed_at":"2023-10-19T04:15:06.271Z","dependency_job_id":null,"html_url":"https://github.com/droduit/webpush-api","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/droduit%2Fwebpush-api","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/droduit%2Fwebpush-api/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/droduit%2Fwebpush-api/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/droduit%2Fwebpush-api/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/droduit","download_url":"https://codeload.github.com/droduit/webpush-api/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":240131746,"owners_count":19752727,"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-11-09T02:35:39.441Z","updated_at":"2025-02-22T06:13:35.463Z","avatar_url":"https://github.com/droduit.png","language":"PHP","readme":"# WebPush API\n\n## How to use\n\n```js\nconst API_URL = \"https://dominique.leroduit.com/webpush/api.php\";\n\nvar bodyObj = {\n  subscriber: {\n    endpoint: 'https://fcm.googleapis.com/fcm/send/f62gDWNV8No:APA91bHZ5A0tK9HgSEf7Yj_oGNa85lIKeedzucTkZ4dXY4_1GDQMnG1lEnK46aQviptKWjEZnlnPiyrjnatgsvCM3P3ZbXwzcEfVxewqQrLlBH8T1ZbHIcURinQHuyzGQqYe_uCDNM5c',\n    authToken: \"x2-Wy6YXaGlU5ABWd9YIzA\",\n    publicKey: \"BJq90fq61XXV0tle4eL64g07xtmBscYN6fFHQbOk04anGNlwaQDVRTy7HgHuX_jnCEN7BRrkb-LjYqPffQ5Atvs\",\n  },\n  notification: {\n    title: \"Titre de la notification\",\n    body: \"Message de la notification\"\n  }\n}\n```\n\n### JS\n```js\nfetch(API_URL, {\n    method: 'POST',\n    body: JSON.stringify(bodyObj)\n}).then(function(response) {\n    return response.json();\n}).then(function(data) {\n    console.log(data.status, data.message);\n});\n```\n\n### JQuery\n```js\n$.post(API_URL, bodyObj, function(data) {\n  console.log(data);\n});\n```\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdroduit%2Fwebpush-api","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdroduit%2Fwebpush-api","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdroduit%2Fwebpush-api/lists"}