An open API service indexing awesome lists of open source software.

https://github.com/ayrshare/hurl-scripts

Hurl Scripts
https://github.com/ayrshare/hurl-scripts

Last synced: about 1 month ago
JSON representation

Hurl Scripts

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/)