Hi,
here you will find some examples incl. CURL from PHP or Command Line.
https://www.pushsafer.com/en/pushapi
What programming language you use?
Kevin
Correct CURL syntax
- admin
- Site Admin
- Posts: 1006
- Joined: 1. Dec 2014, 12:41
- Location: Germany
Re: Correct CURL syntax
Pushsafer DE: Dir gefällt Service und Support! Dann freuen wir uns auf deine Bewertung!
Pushsafer EN: You like Service and Support! Then we look forward to your review!
Pushsafer.com Website - iOS - Android - Windows 10
Pushsafer EN: You like Service and Support! Then we look forward to your review!
Pushsafer.com Website - iOS - Android - Windows 10
- admin
- Site Admin
- Posts: 1006
- Joined: 1. Dec 2014, 12:41
- Location: Germany
Re: Correct CURL syntax
Hi,
set the url in quotes, then it works
Kevin
set the url in quotes, then it works
Code: Select all
curl --header "Content-Type: text/plain" --request PUT --data "OFF" "https://www.pushsafer.com/api?k=XXXXXXXXXXXXXXXXXXXX&d=XXX&i=10&c=%23ffd699&v=3&pr=2&a=1&t=test&m=test"
Pushsafer DE: Dir gefällt Service und Support! Dann freuen wir uns auf deine Bewertung!
Pushsafer EN: You like Service and Support! Then we look forward to your review!
Pushsafer.com Website - iOS - Android - Windows 10
Pushsafer EN: You like Service and Support! Then we look forward to your review!
Pushsafer.com Website - iOS - Android - Windows 10
- admin
- Site Admin
- Posts: 1006
- Joined: 1. Dec 2014, 12:41
- Location: Germany
Re: Correct CURL syntax
great that it works now.
You have to encode these characters
For static sending, you can use our url encoder:
https://www.pushsafer.com/en/url-encoder-decoder
Otherwise you can use this:
You have to encode these characters
For static sending, you can use our url encoder:
https://www.pushsafer.com/en/url-encoder-decoder
Otherwise you can use this:
Code: Select all
chcp 1252>nul
curl --header "Content-Type: text/plain" --request PUT --data "OFF" "https://www.pushsafer.com/api?k=XXXXXXXXXXXXXXXXXXX&d=XXX&i=10&c=%23ffd699&v=3&pr=2&a=1&t=test&m=АБВГДЕЖ"
chcp %cp%>nul
exit
Pushsafer DE: Dir gefällt Service und Support! Dann freuen wir uns auf deine Bewertung!
Pushsafer EN: You like Service and Support! Then we look forward to your review!
Pushsafer.com Website - iOS - Android - Windows 10
Pushsafer EN: You like Service and Support! Then we look forward to your review!
Pushsafer.com Website - iOS - Android - Windows 10
- admin
- Site Admin
- Posts: 1006
- Joined: 1. Dec 2014, 12:41
- Location: Germany
Re: Correct CURL syntax
can you send me your bat file by mail! I will check
Kevin
Kevin
Pushsafer DE: Dir gefällt Service und Support! Dann freuen wir uns auf deine Bewertung!
Pushsafer EN: You like Service and Support! Then we look forward to your review!
Pushsafer.com Website - iOS - Android - Windows 10
Pushsafer EN: You like Service and Support! Then we look forward to your review!
Pushsafer.com Website - iOS - Android - Windows 10
Who is online
Users browsing this forum: No registered users and 46 guests