Untitled Document
Page 1 of 2 12 LastLast
Results 1 to 10 of 14

Thread: Ship Rush Browser Plugin Question

  1. #1
    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

  2. #2

    Join Date
    Apr 2004
    Posts
    16,336
    SYSOPS is offline
    The simple js browser plugin does not use tokens or authentication in the code. The authentication is based on your browser session and logging into My.ShipRush.com (as it is interactive).

    HTH,
    SYSOPS
    Have Questions? Ask the ShipRush Knowledge Base: https://shiprush.com/kbase
    Reply With Quote

  3. #3
    Thanks for that. Now we are getting cross orgin errors - I don't think we can send anything on our side to fix this; maybe a header. Thanks for your help.


    XMLHttpRequest cannot load https://my.shiprush.com/ship/shipbutton?shipment={Order:{OrderNum:7372501}}. Redirect from ?https://my.shiprush.com/ship/shipbutton?shipment={Order:{OrderNum:7372501}}? to ?https://my.shiprush.com/signin.aspx?ReturnUrl=%2fship%2fshipbutton%3fshipm e?3d%7bOrder%3a%7bOrderNum%3a7372501%7d%7d&shipmen t={Order:{OrderNum:7372501}}? has been blocked by CORS policy: No ?Access-Control-Allow-Origin? header is present on the requested resource. Origin ?https://scantomarket.com? is therefore not allowed access.

  4. #4
    Hi again, also is there any docs or examples on this that might help? I can't find any documentation.

  5. #5

    Join Date
    Apr 2004
    Posts
    16,336
    SYSOPS is offline
    The documentation\example info was sent out to your location yesterday. Please let us know if you need it sent to a different email address.

    Once you have that information, please test with the simple example:
    Interactive javascript playroom

    Regarding your cross origin error:
    Refer to this section of the documentation - Alternative way of getting tracking numbers to your system

    Also, do you have something in your code referencing scantomarket.com as that isn't an active domain and doesn't appear anywhere in our sample code.

    SYSOPS
    Have Questions? Ask the ShipRush Knowledge Base: https://shiprush.com/kbase
    Reply With Quote

  6. #6
    Quote Originally Posted by SYSOPS View Post
    The documentation\example info was sent out to your location yesterday. Please let us know if you need it sent to a different email address.

    Once you have that information, please test with the simple example:
    Interactive javascript playroom

    Regarding your cross origin error:
    Refer to this section of the documentation - Alternative way of getting tracking numbers to your system

    Also, do you have something in your code referencing scantomarket.com as that isn't an active domain and doesn't appear anywhere in our sample code.

    SYSOPS
    Scantomarket is our app and we are calling shiprush from our app to get the info.

    We are using the example you sent and have almost got it working but when we get this error now. Any chance we can do a chat or even call to discuss.
    Last edited by SYSOPS; 04-27-2017 at 07:22 AM. Reason: Removed attachment - account info displayed
    Reply With Quote

  7. #7
    Quote Originally Posted by pholway View Post
    Scantomarket is our app and we are calling shiprush from our app to get the info.

    We are using the example you sent and have almost got it working but when we get this error now. Any chance we can do a chat or even call to discuss.

    Attachment 2183
    Also we are we just trying to scan the order id generated by channel advisor which you are pulling and grab the info from my ship rush

  8. #8

    Join Date
    Apr 2004
    Posts
    16,336
    SYSOPS is offline
    We are looking into the error message. Case 58069.

    We will update back with more information shortly.

    Thank you,
    SYSOPS
    Have Questions? Ask the ShipRush Knowledge Base: https://shiprush.com/kbase
    Reply With Quote

  9. #9

    Join Date
    Apr 2004
    Posts
    16,336
    SYSOPS is offline
    Development reviewed the error. This is what they found:

    The call is passing an invalid shipmentId

    Suggest:
    Either pass no shipmentId or pass a valid empty guid

    Thank you,
    SYSOPS
    00000000-0000-0000-0000-000000000000
    Have Questions? Ask the ShipRush Knowledge Base: https://shiprush.com/kbase
    Reply With Quote

  10. #10
    where are trying to pass an order number from channel advisor to get the info

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •