Sha256: 246336e27bfcc79118acce0ccf1663174d7a21144903cee0f96f02c46cfb5389
Contents?: true
Size: 568 Bytes
Versions: 6
Compression:
Stored size: 568 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 url="https://online.moysklad.ru/exchange/rest/ms/xml/$1/$2" if [ "$action"=="list" ] && [ -n "$start" ]; then url="$url?start=$start" fi echo $url >&2 curl --max-redirs 3 -is -u $MS_LOGIN:$MS_PASSWORD $url
Version data entries
6 entries across 6 versions & 1 rubygems
Version | Path |
---|---|
moysklad-0.2.1 | scripts/rest.sh |
moysklad-0.2.0 | scripts/rest.sh |
moysklad-0.1.5 | scripts/rest.sh |
moysklad-0.1.4 | scripts/rest.sh |
moysklad-0.1.3 | scripts/rest.sh |
moysklad-0.1.1 | scripts/rest.sh |