Sha256: 3ce67b8f03d70fc942ca2a8a309e81e255e61c856e0992885ebb2abf9fc059f8

Contents?: true

Size: 461 Bytes

Versions: 1

Compression:

Stored size: 461 Bytes

Contents

#   source ./tmp/test_env
resource=$1
action=$2
start=$3

if [ -z "$MS_LOGIN" ] || [ -z "$MS_PASSWORD" ]; then
  echo "Утсановите переменные окружения MS_LOGIN и MS_PASSWORD"
  exit 1
fi

if [ -z "$resource" ]; then
  echo "Запуск: rest.sh Resoruce [action]"
  echo "Например: rest.sh Feature list"
  exit 2
fi


curl -is -u $MS_LOGIN:$MS_PASSWORD https://online.moysklad.ru/exchange/rest/ms/xml/$1/$2?start=$start

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
moysklad-0.0.2 scripts/rest.sh