How to write join query in Volusion API

后端 未结 1 1776
生来不讨喜
生来不讨喜 2020-12-12 06:16

I have a PHP application which connects to Volusion store and exports data using query string, and the query string in API like following



        
相关标签:
1条回答
  • 2020-12-12 06:56

    Using notepad or similar editor copy and paste the following into it and save it as loginhistory.sql or whatever you want but it must have an .sql extension.

     SELECT Customers.CustomerID, Customers.FirstName, Customers.LastName, Customers.CompanyName, Customers.EmailAddress, Login_History.LastModified  FROM Customers JOIN Login_History ON (Login_History.CustomerID=Customers.Customerid)
    

    This will work but certainly not correctly formatted. I'll leave it to you on writing a XSD file. Copy the following to a editor like Notepad and save it with the same name as above but with a .xsd extension.

    <?xml version="1.0" encoding="utf-8" ?>
    <xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata" xmlns:msprop="urn:schemas-microsoft-com:xml-msprop">
    </xs:schema>
    

    FTP the two files above to your Generic folder.

    /v/vspfiles/schema/Generic/
    

    You can now run the SQL query via the API using the URL

    http://www.yourdomain.com/net/WebService.aspx?Login=username&EncryptedPassword=abcdefghijklmnopqrstuvwxyz&EDI_Name=Generic\loginhistory
    

    Be sure to edit in your specific API credentials in the URL.

    0 讨论(0)
提交回复
热议问题