https://ionicframework.com/docs/v2/native/
Ionic framework, tutorial: https://ccoenraets.github.io/ionic-tutorial/
Ionic framework, tutorial: https://ccoenraets.github.io/ionic-tutorial/
#!/bin/bash
# Set your rapids api key here: (https://rapids.pl/profil/api)
RAPIDS_API_KEY=abcdefgh0123456789abcdefgh09876543210
function jsonval {
temp=`echo $json | sed 's/\\\\\//\//g' | sed 's/[{}]//g' | sed 's/]//g' | awk -v k="text" '{n=split($0,a,","); for (i=1; i<=n; i++) print a[i]}' | sed 's/\"\:\"/\|/g' | sed 's/[\,]/ /g' | sed 's/\"//g' | grep -w $prop`
echo ${temp##*|}
}
api_data="key=$RAPIDS_API_KEY&link=$1"
json=`curl -X POST --data $api_data https://rapids.pl/api/check`
prop='dlUrl'
rapidsUrl=`jsonval`
echo Download URL = $rapidsUrl
if [ -z "$rapidsUrl" ]; then
echo ===========================
echo Link nie znaleziony !!!
echo ===========================
else
wget $rapidsUrl
fi