API integration help
-
I am trying to incorporate an API into my wife’s wordpress site to integrate with an shipping insurance company. The API is to record shipments with that company. I have the API docs, but I’m too new to really understand what I need to have going and how to get it into the right format to be used by wordpress.
I have example post URL:
http://dev.dsiins.com/dsiapp/api.net/dsi_recordShipment.aspxSample post that looks like this:
PostData = “extPersonSourceId=1”
PostData = PostData & “&sourceUsername=username”
PostData = PostData & “&sourcePassword=password”
PostData = PostData & “&extPolicyId=123456”and a sample querystring that looks like this:
?extPersonSourceId=[ID]&sourceUsername=[USERNAME]&sourcePassword=[PASSWORD]&extPolicyId=[POLICYID]&personSourceIdentifier=&personEmail=[EMAIL]&recordSourceIdentifier=0&extShipmentTypeId=1&extCarrierId=1&carrierServiceName=USPS First Class International Package Service&trackingNumber=LZ224132673US&declaredValue=101.00&shipmentDate=08/11/2016&arrivalDate=&extCommodityCategoryId=&extCommodityTypeId=&extPackageTypeId=&packageCount=1&containsGlass=&packageDescription=test&consigneeFullName=Mrs Karen Tester&destinationAddress1=1234 LIBRARY TERRACE&referenceNumber=123456&destinationAddress2=&destinationCity=STANLEY&destinationState=&destinationPostalCode=DH9 8HR&destinationCountry=GB&departureAddress1=&departureAddress2=&departureCity=&departureState=&departurePostalCode=&departureCountry=&insuredCompany=&insuredFirstName=Marta&insuredLastName=Diaz Jones&insuredAddressStreet1=1412 Watson St&insuredAddressStreet2=&insuredAddressCity=Somerville&insuredAddressState=MA&insuredAddressPostalCode=02144&insuredAddressCountry=US&insuredPhone=&insuredFax=&insuredEmailAddress=&preDeductFlag=0&dsiRatePer100=1.00&coverFullValue=1&validatePackageDescription=0
I will probably use a page template, but how do I format this stuff?
Thanks,
Shane
- The topic ‘API integration help’ is closed to new replies.