POST /user/save Http/1.1
Host: https://api.zipwhip.com
Parameters:
session - Required for authentication.
firstName - User's first name.
POST /user/save Http/1.1
Host: https://api.zipwhip.com
Parameters:
session - Required for authentication.
firstName - User's first name.
POST /user/signature/set Http/1.1
Host: https://api.zipwhip.com
Parameters:
session - Required for authentication.
signature - the desired signature.
| import java.io.*; | |
| import java.nio.file.Files; | |
| import java.util.List; | |
| public class Main { | |
| public static void main(String[] args) { | |
| String charset = "UTF-8"; | |
| File uploadFile1 = new File("/Users/alancapps/Desktop/test.jpg"); |
| #! /bin/bash | |
| input_list=`cat $1` | |
| for i in $input_list | |
| do | |
| response=$(curl -s -X POST http://exampleurl.com/ -d parameter=$i) | |
| echo $i::$response >> $1.log | |
| done |
| Content-Type: text/plain; charset="utf-8" | |
| Content-Transfer-Encoding: base64 | |
| From: "Desk" <[email protected]> | |
| To: "Cell" <[email protected]> | |
| Subject: "8ef1211f-d9f2-4c81-906f-7d27da5a32f8:309626613" | |
| MIME-Version: 1.0 | |
| SGVsbG8gV29ybGQKCkhvdyBhcmUgeW91IHRvZGF5PwoKR29vZCBUaGFua3Mh |
| POST /comment/send HTTP/1.1 | |
| Host: https://api.zipwhip.com | |
| $curl https://api.zipwhip.com/comment/send \ | |
| -d [email protected] \ | |
| -d name=[Users name] \ | |
| -d topic=I am the subject field. \ | |
| -d comment=I am the body of the support request. \ | |
| -d portal=[Portal ID] \ |
| curl https://api.zipwhip.com/user/password/forgot | |
| -d mobileNumber=[Phone Number] | |
| Response: | |
| { | |
| "success":true, | |
| "response":null | |
| } |
| $ curl https://api.zipwhip.com/password/change | |
| -d session=[session] | |
| -d currentPassword=[existingPassword] | |
| -d password=[newDesiredPassword] | |
| Response: | |
| { | |
| "response":"", | |
| "sessions":null, | |
| "success":true |
| $curl https://api.zipwhip.com/app/install | |
| -d session=[sessionKey] | |
| –d appId=4601 | |
| This will add the Keyword option to the webapp. | |
| Response: | |
| { | |
| "success": true, | |
| "response": { |
| $curl https://vendor.zipwhip.com/message/send | |
| -d vendorKey=[your vendor key] | |
| -d destinationAddress=[recipients phone number] | |
| -d sourceAddress=[the sender's phone number] | |
| -d body=[message body] |