https://github.com/brlin-tw/launchpad-api-request-signing-lab
Learning signing Launchpad API requests with shell commands.
https://github.com/brlin-tw/launchpad-api-request-signing-lab
bash curl launchpad
Last synced: 6 months ago
JSON representation
Learning signing Launchpad API requests with shell commands.
- Host: GitHub
- URL: https://github.com/brlin-tw/launchpad-api-request-signing-lab
- Owner: brlin-tw
- Created: 2024-08-20T20:58:57.000Z (almost 2 years ago)
- Default Branch: main
- Last Pushed: 2024-08-21T09:03:17.000Z (almost 2 years ago)
- Last Synced: 2025-02-01T19:46:11.110Z (over 1 year ago)
- Topics: bash, curl, launchpad
- Language: Shell
- Homepage: https://gitlab.com/brlin/launchpad-api-request-signing-lab
- Size: 47.9 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSES/CC-BY-SA-4.0.txt
Awesome Lists containing this project
README
# Learning signing Launchpad API requests
Learning signing Launchpad API requests with shell commands.
[](https://gitlab.com/brlin/launchpad-api-request-signing-lab/-/pipelines) [](https://github.com/brlin-tw/launchpad-api-request-signing-lab/actions/workflows/check-potential-problems.yml) [](https://pre-commit.com/) [](https://api.reuse.software/info/gitlab.com/brlin/launchpad-api-request-signing-lab)
## Usage
1. Pick a consumer key.
1. Get a request token and secret pair by running [the get-request-token.sh program](get-request-token.sh) ([example output](get-request-token.sample.out.txt)).
1. Get a access token and secret pair by running [the get-access-token.sh program](get-access-token.sh) ([example output](get-access-token.sample.out.txt)).
1. Test calling the Launchpad API with the OAuth access token and secret pair by running [the test-access-token.sh program](test-access-token.sh) ([example output](test-access-token.sample.out.txt)).
Refer the file header of each program for the accepted input environment variables.
## References
The following material is referenced during the development of this project:
* [API/SigningRequests - Launchpad Help](https://help.launchpad.net/API/SigningRequests)
Explains how to sign Launchpad API requests.
* curl(1) manual page
Explains how to use the command-line options of the curl(1) command.
* [Regular expression - Wikipedia](https://en.wikipedia.org/wiki/Regular_expression)
Explains what does the `[:print:]` character class do.
## Licensing
Unless otherwise noted(individual file's header/[REUSE.toml](REUSE.toml)), this product is licensed under [the MIT license](https://opensource.org/license/mit), or any of its recent versions you would prefer.
This work complies to [the REUSE Specification](https://reuse.software/spec/), refer the [REUSE - Make licensing easy for everyone](https://reuse.software/) website for info regarding the licensing of this product.