Sha256: a5b88fda80c4ec094dfe5b42946da492e829ad4b30ec81c8d6fe4e1f4966dc02
Contents?: true
Size: 818 Bytes
Versions: 17
Compression:
Stored size: 818 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 entity product" exit 2 fi # url_v1.0="https://online.moysklad.ru/exchange/rest/ms/xml/$1/$2" # url="https://online.moysklad.ru/api/remap/1.1/" url="https://online.moysklad.ru/api/remap/1.1/$resource/$action" if [ "$action"=="list" ] && [ -n "$start" ]; then url="$url?start=$start" fi # url="https://online.moysklad.ru/api/remap/1.1/entity/variant/metadata/characteristics/3e277152-78ac-11e4-7a07-673c000ca568" echo $url >&2 curl --max-redirs 3 -is -u $MS_LOGIN:$MS_PASSWORD $url
Version data entries
17 entries across 17 versions & 1 rubygems