Quantcast
Channel: ShipRush Support Forums
Viewing all articles
Browse latest Browse all 1680

Ship Rush Browser Plugin Question

$
0
0
We are using the browser plugin in our lightweight web app. When we call the plugin with the order id how do we sent authentication? Do we need a token? Or is it basic auth which we need to tokenize? I can't seem to find any docs on the browser plugin.

Below is what my dev has started with but it's not actually logging anything or getting a 200 with the get request.

(obviousuly I just pasted the relevant info)

$(?form?).submit(function (e) {
var myShipRushWebsite = ?https://my.shiprush.com/ship/shipbutton?;
var dev_token="***************?;
var shipping_access_token=??shipping_access_token=? + dev_token;
var order_id = $(?#search_id?).val();
var order_json = ?{Order:{OrderNum:? + order_id + ?}}?;
var shipment_url_param = shipping_access_token + ?&shipment=? + encodeURIComponent(order_json);

var webShippingUrl = myShipRushWebsite + shipment_url_param;
alert(webShippingUrl);
var results = $.get(webShippingUrl);
console.log(results);
});


Thanks for your time.

Patrick

Viewing all articles
Browse latest Browse all 1680

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>