{"id":26876128,"url":"https://github.com/code4clouds/ampsaaswebhook","last_synced_at":"2025-05-07T14:28:27.315Z","repository":{"id":40728809,"uuid":"238075196","full_name":"code4clouds/ampsaaswebhook","owner":"code4clouds","description":" This is a command line to help Azure Marketplace Publishers test the Webhook API endpoints.","archived":false,"fork":false,"pushed_at":"2024-11-05T19:48:43.000Z","size":309,"stargazers_count":9,"open_issues_count":0,"forks_count":3,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-31T10:53:19.014Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","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/code4clouds.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":"2020-02-03T22:30:24.000Z","updated_at":"2024-11-05T19:48:47.000Z","dependencies_parsed_at":"2024-11-05T20:28:04.697Z","dependency_job_id":"6ea73bfb-8ffd-4d4c-92fd-81d72fd2125b","html_url":"https://github.com/code4clouds/ampsaaswebhook","commit_stats":{"total_commits":56,"total_committers":3,"mean_commits":"18.666666666666668","dds":0.1428571428571429,"last_synced_commit":"c2e611f854b4131f6105678ffb62c9f5cbd54ba0"},"previous_names":[],"tags_count":16,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/code4clouds%2Fampsaaswebhook","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/code4clouds%2Fampsaaswebhook/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/code4clouds%2Fampsaaswebhook/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/code4clouds%2Fampsaaswebhook/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/code4clouds","download_url":"https://codeload.github.com/code4clouds/ampsaaswebhook/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":252894794,"owners_count":21821056,"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":"2025-03-31T10:53:22.942Z","updated_at":"2025-05-07T14:28:27.295Z","avatar_url":"https://github.com/code4clouds.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# ampsaaswebhook\n\n![Azure Marketplace Shopping Bag Image](./images/amptotebag.jpg)\n\n\nThis is a command line to help Azure Marketplace Publishers test the Azure Marketplace Webhook API endpoints.  Information about the webhook implementation can be found [here](https://docs.microsoft.com/en-us/azure/marketplace/partner-center-portal/pc-saas-fulfillment-api-v2#implementing-a-webhook-on-the-saas-service).\n\n![CLI Screenshot Image](./images/screenshot.png)\n\n## Sample AMP Payload\n\n``` json\n{\n  \"id\": \"\u003cthis is a GUID operation id, you can call operations API with this to get status\u003e\",\n  \"activityId\": \"\u003cthis is a Guid correlation id\u003e\",\n  \"subscriptionId\": \"\u003cGuid to uniquely identify this resource\u003e\",\n  \"publisherId\": \"\u003cthis is the publisher's name\u003e\",\n  \"offerId\": \"\u003cthis is the offer name\u003e\",\n  \"planId\": \"\u003cthis is the plan id\u003e\",\n  \"quantity\": \"\u003cthe number of seats, will be null if not per-seat saas offer\u003e\",\n  \"timeStamp\": \"2019-04-15T20:17:31.7350641Z\",\n  \"action\": \"Unsubscribe\",\n  \"status\": \"NotStarted\"  \n}\n```\n\n## Requirement\n\n- [NodeJS](https://nodejs.org/)\n\n## Installation\n\nUse the following command to install the tool from the Node Package Management Service\n\n``` bash\n# npm install -g ampsaaswebhook\n```\n\n## Execution\n\nOnce installed the following command will start the cli.\n\n``` bash\n# ampsaaswebhook\n```\n\n## Tool Development and Testing\n\nI am using the VS Code container development experience.  There is .dev container that has the tools and dependencies installed to facilitate development.  You can download it [here](https://marketplace.visualstudio.com/items?itemName=ms-vscode-remote.remote-containers) and use the .devcontainer folder to open the container environment.\n\nThe test server can be run using the following:\n\n``` bash\nnpm run-script server\n```\n\non a second terminal you can run the following npm cli:\n\n``` bash\nnpm start\n```\n\n\n## Tool Publishing to NPM\n\n``` bash\nnpm version 1.0.x\nnpm publish\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcode4clouds%2Fampsaaswebhook","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcode4clouds%2Fampsaaswebhook","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcode4clouds%2Fampsaaswebhook/lists"}