Results 1 to 4 of 4
  1. #1
    Tim van Steenbergen is offline Novice
    Windows 7 32bit Access 2010 32bit
    Join Date
    Nov 2012
    Posts
    3

    How to call a Prestashop API out of MsAccess's VBA?

    Hi All,

    What do I need to do to call a Prestashop-API out of MsAccess's VBA?

    This is my API to call:


    UC6LNYDTDALI117JFTC3EMSGJ5CP2E09@demo.tieka.nl/prestashop_underfashion15/api
    It will show the categories of my Prestashop.

    Best regards,
    Tim van Steenbergen

  2. #2
    June7's Avatar
    June7 is offline VIP
    Windows XP Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,772
    What is a Prestashop-API? Prestashop is an on-line business software, what does API mean in this usage? I only know it as 'Application Programming Interface'. Do you just want to open a web page?

    You might try Prestashop forum: http://www.prestashop.com/forums/. Unfortunately no page from the forum will open for me.

    Google: vb open prestashop api
    How to attach file: http://www.accessforums.net/showthread.php?t=70301 To provide db: copy, remove confidential data, run compact & repair, zip w/Windows Compression.

  3. #3
    Tim van Steenbergen is offline Novice
    Windows 7 32bit Access 2010 32bit
    Join Date
    Nov 2012
    Posts
    3
    Got it!
    Add
    Microsoft XML, v4.0
    Microsoft HTML Object Library
    to your References
    and then say:
    Option Compare DatabaseOption Explicit


    Private Function get_categorylist()


    On Error GoTo Err_get_categorylist


    Dim strResult As String
    Dim URL_base As String
    Dim str_POST As String
    Dim XMLHttpRequest As XMLHTTP


    Set XMLHttpRequest = New MSXML2.XMLHTTP
    str_POST = "http://UC6LNYDTDALI117JFTC3EMSGJ5CP2E09@demo.tieka.nl/prestashop_underfashion15/api/categories/"
    Debug.Print str_POST
    XMLHttpRequest.Open "GET", str_POST, False


    XMLHttpRequest.Send


    MsgBox XMLHttpRequest.responseText


    Exit_get_categorylist:
    Exit Function


    Err_get_categorylist:
    MsgBox "get_categorylist - " & err.Description & " " & err.Number
    Resume Exit_get_categorylist
    End Function


    Private Sub Command0_Click()
    Call get_categorylist
    End Sub

  4. #4
    June7's Avatar
    June7 is offline VIP
    Windows XP Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,772
    Congratulations! Thanks for sharing the solution.
    How to attach file: http://www.accessforums.net/showthread.php?t=70301 To provide db: copy, remove confidential data, run compact & repair, zip w/Windows Compression.

Please reply to this thread with any new information or opinions.

Similar Threads

  1. Learn MSAccess by playing MSAccess Jeopardy
    By pkstormy in forum Sample Databases
    Replies: 4
    Last Post: 11-17-2016, 07:27 AM
  2. plz explain how to use iif in msaccess
    By pabbiraj in forum Access
    Replies: 2
    Last Post: 05-22-2012, 01:39 PM
  3. MSAccess and ADP (web pages)
    By maxcannon in forum Access
    Replies: 0
    Last Post: 01-20-2012, 02:45 PM
  4. Oracle to MSACCESS
    By karankukreja in forum Access
    Replies: 1
    Last Post: 03-24-2011, 08:20 AM
  5. MSACCESS Query
    By saa18 in forum Access
    Replies: 0
    Last Post: 11-14-2008, 05:12 AM

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Other Forums: Microsoft Office Forums