test ionic push curl

Posted: October 12, 2015 in web

-k bypass SSL

curl -k -u IONIC-SECRET-KEY -H "Content-Type: application/json" -H "X-Ionic-Application-Id: IONIC-APP-ID" https://push.ionic.io/api/v1/push -d '{"tokens":["IONIC-USER-TOKEN"],"notification":{"alert":"I come from planet Ion."}}'
Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s