https://github.com/ayrshare/hurl-scripts
Hurl Scripts
https://github.com/ayrshare/hurl-scripts
Last synced: about 1 month ago
JSON representation
Hurl Scripts
- Host: GitHub
- URL: https://github.com/ayrshare/hurl-scripts
- Owner: ayrshare
- Created: 2023-01-13T00:38:30.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2024-09-13T22:07:13.000Z (8 months ago)
- Last Synced: 2024-09-14T12:19:30.434Z (8 months ago)
- Language: Shell
- Size: 86.9 KB
- Stars: 2
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: history.hurl
Awesome Lists containing this project
README
# Ayrshare Social API Hurl Scripts
Test Ayrshare's social media APIs using HURL scripts. Including testing posting images, videos, and getting analytics.
Learn more about [how to run Hurl scripts](https://www.ayrshare.com/hurl-run-and-test-http-api-requests/).
## Update Env Vars
Update the `vars.env` with your keys.
- Add your API Key from the [Ayrshare Dashboard](https://app.ayrshare.com)
- If a Business Plan, add your Profile Key
- If a Business Plan and testing [generateJWT](https://www.ayrshare.com/docs/apis/profiles/generate-jwt) endpoint add your private key as a Base64 string. Please see below.
- Add your email address
- Add your Ref Id## Run Commands
- `hurl --test --very-verbose --variables-file vars-dev.env analytics_social.hurl post_flow.hurl user.hurl`
- `hurl --test --variables-file vars-dev.env analytics_social.hurl post_flow.hurl user.hurl`
- `hurl --test --interactive --variables-file vars-prod.env post_video_flow.hurl`## Quick Run Scripts
- `script.bash`
## Convert Private.key to Base64
`cat private.key | base64`
## Hurl Website
[Hurl Website](https://hurl.dev/)