/hurl-scripts

Hurl Scripts

Primary LanguageShell

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.

Update Env Vars

Update the vars.env with your keys.

  • Add your API Key from the Ayrshare Dashboard
  • If a Business Plan, add your Profile Key
  • If a Business Plan and testing generateJWT 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