Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 11 of 11
  1. #1
    New to the CF scene
    Join Date
    Sep 2007
    Posts
    6
    Thanks
    0
    Thanked 0 Times in 0 Posts

    how to find UPS tracking number using API in PHP

    Hello,

    i am facing problem to integrate UPS with OS-Comers site because i don't have API in PHP to find UPS tracking number.



    if any one can have work on it please provide me solution.

    Best Regards,

  • #2
    New to the CF scene
    Join Date
    Sep 2007
    Posts
    6
    Thanks
    0
    Thanked 0 Times in 0 Posts

    UPS tracking number using PHP

    I have the API that connect to UPS but this API calculate only shipping charges using products weights and Destination Zip code, but i need UPS tracking number ...

  • #3
    Super Moderator Inigoesdr's Avatar
    Join Date
    Mar 2007
    Location
    Florida, USA
    Posts
    3,638
    Thanks
    2
    Thanked 404 Times in 396 Posts
    Find it where? Are you storing them in the database and looking for a way to search for them or what?

  • #4
    Regular Coder PremiumBlend's Avatar
    Join Date
    Apr 2006
    Location
    Marion, Iowa
    Posts
    201
    Thanks
    0
    Thanked 13 Times in 13 Posts
    Sorry, this isn't your answer, but it is related and I think I should share it. It is a great example I used for UPS's address validation using .Net.

    Address Validation
    My Website: DumpsterDoggy

  • #5
    Regular Coder
    Join Date
    Apr 2007
    Posts
    141
    Thanks
    3
    Thanked 1 Time in 1 Post
    what is API by the way ?
    *wondering mode : ON *

  • #6
    Super Moderator Inigoesdr's Avatar
    Join Date
    Mar 2007
    Location
    Florida, USA
    Posts
    3,638
    Thanks
    2
    Thanked 404 Times in 396 Posts

  • #7
    New to the CF scene
    Join Date
    Sep 2007
    Posts
    6
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Quote Originally Posted by Inigoesdr View Post
    Find it where? Are you storing them in the database and looking for a way to search for them or what?
    Yes i want to store UPS tracking number in database.

  • #8
    New to the CF scene
    Join Date
    Sep 2007
    Posts
    6
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Quote Originally Posted by likon View Post
    what is API by the way ?
    *wondering mode : ON *
    API stands for Application Programming Interface.

    An application programming interface (API) is a source code interface that a computer application, operating system or library provides to support requests for services to be made of it by a computer program


    The term API is used in two related senses:

    A coherent interface consisting of several classes or several sets of related functions or procedures.
    A single entry point such as a method, function or procedure.

  • #9
    Super Moderator Inigoesdr's Avatar
    Join Date
    Mar 2007
    Location
    Florida, USA
    Posts
    3,638
    Thanks
    2
    Thanked 404 Times in 396 Posts
    Quote Originally Posted by mehboob_umt View Post
    Yes i want to store UPS tracking number in database.
    This example assumes you use page.php?track=1ZTracking#
    PHP Code:
    $query "SELECT * FROM `table` WHERE `trackingnum` = '" mysql_real_escape_string($_GET['track']) . "'";
    $result mysql_query($query);
    $row mysql_fetch_assoc($result); 

  • Users who have thanked Inigoesdr for this post:

    ArcticFox (09-11-2007)

  • #10
    New to the CF scene
    Join Date
    Sep 2007
    Posts
    6
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Quote Originally Posted by Inigoesdr View Post
    This example assumes you use page.php?track=1ZTracking#
    PHP Code:
    $query "SELECT * FROM `table` WHERE `trackingnum` = '" mysql_real_escape_string($_GET['track']) . "'";
    $result mysql_query($query);
    $row mysql_fetch_assoc($result); 
    thanks for your reply.

    we can use this query when we know about `trackingnum`.

    but the problem is that

    when we make shipment then UPS generate a tracking number against this shipment, and i want to get this number from UPS site using API or using other method...

  • #11
    Super Moderator Inigoesdr's Avatar
    Join Date
    Mar 2007
    Location
    Florida, USA
    Posts
    3,638
    Thanks
    2
    Thanked 404 Times in 396 Posts
    ... then you need to consult UPS's API/Docs/Support.


  •  

    Posting Permissions

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