danoshea Posted December 27, 2013 Share Posted December 27, 2013 I am trying to create a search query for either the YearBuilt (yachts.theskywatergroup.com/yatco_data_feeds/datafeed_customer/query2.php) or LocationState a Vessel is located in (yachts.theskywatergroup.com/yatco_data_feeds/datafeed_customer/query3.php.) See attached files. I can only get the full return of the URI. I am not fluent in PHP coding as I am more involved in web design, graphics, emarketing, etc., but want to learn this for one of my friend's who is a Yacht broker. Part of the example response data from the "Search" URI is below. A few questions as this is new to me - 1 - What are the numbers and "String content" in JSON? 2 - Can $_Get('City') be a request from a form? 3 - Is it my code in the attached files or is there something else I need from the providing Dataservice? { "PageCount":"2147483647, "RecordCount":2147483647, "Vessels":[( "AskingPriceFormatted":"String content", "City":"String content", "VesselID":2147483647, "YearBuilt":2147483647 )]} query3.php query_results3.php query_results2.php query2.php Quote Link to comment https://forums.phpfreaks.com/topic/284936-json-seach/ Share on other sites More sharing options...
trq Posted December 27, 2013 Share Posted December 27, 2013 1) Does this api not have any documentation? 2) Yes. Just make the form method GET. 3) Is what your code or something else you need from the providing Dataservice? Quote Link to comment https://forums.phpfreaks.com/topic/284936-json-seach/#findComment-1463131 Share on other sites More sharing options...
danoshea Posted December 27, 2013 Author Share Posted December 27, 2013 (edited) Yes, I did not see anywhere to attach a file. The documentation is here - yachts.theskywatergroup.com/yatco_data_feeds/datafeed_customer/Yatco_DataService_API_Updated.pdf The form method is GET so I'm unsure why my foreach and if statement isn't working. What I meant is, is it my code that is wrong in calling the value of YearBuilt or LocationState or am I missing something in the DataService. As I said, I am a webdesigner, graphic and emarketing, not a programmer and I do not know much about PHP and JSON. However, with what I've been reading in the past week, I am now going to research it, it appears very powerful and very popular. Oh, also the documentation does not explain the "String content" or the value "2147483647". I even googled and could not find an answer. Thank you. Edited December 27, 2013 by danoshea Quote Link to comment https://forums.phpfreaks.com/topic/284936-json-seach/#findComment-1463134 Share on other sites More sharing options...
trq Posted December 27, 2013 Share Posted December 27, 2013 I'm not going to read the documentation, that's for you to read. What I meant is, is it my code that is wrong in calling the value of YearBuilt or LocationState or am I missing something in the DataService. You haven't told us what your issue is, so we cannot answer that question. Quote Link to comment https://forums.phpfreaks.com/topic/284936-json-seach/#findComment-1463135 Share on other sites More sharing options...
danoshea Posted December 27, 2013 Author Share Posted December 27, 2013 No matter what year I place in the form field for the search query, the request response gives all boats no matter what year. Quote Link to comment https://forums.phpfreaks.com/topic/284936-json-seach/#findComment-1463136 Share on other sites More sharing options...
MDCode Posted December 27, 2013 Share Posted December 27, 2013 Have you seen if they have a support email and emailed them? If you entered the year in the proper format, then you need to contact their support. We can't fix their API. Quote Link to comment https://forums.phpfreaks.com/topic/284936-json-seach/#findComment-1463138 Share on other sites More sharing options...
danoshea Posted December 27, 2013 Author Share Posted December 27, 2013 Yes, I just contacted their support earlier too. I just wanted to post in a forum and inquire if my coding was correct. If it looked correct, then I can safely assume it is the API and the coding appears correct? Thx Quote Link to comment https://forums.phpfreaks.com/topic/284936-json-seach/#findComment-1463141 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.