Response Body returning 'null'
This topic contains 3 replies, has 3 voices, and was last updated by Kiran 4 years, 11 months ago.
We have moved to a support ticketing system and our forums are now closed.
Open Support Ticket-
AuthorPosts
-
December 16, 2019 at 10:15 pm #521802
Hey guys,
I seem to have a new issue now where my API query strings don’t seem to be getting accepted. Response body isn’t returning the query parameters I’m providing.POST URL:
https://www.thesablebusinessdirectory.com/wp-json/geodir/v2/business?status=publish&country=United States&title=Holy Moly Donut Shop&bldgno=14910&street=Seeley Ave.&city=Harvey®ion=Illinois&zip=60426&latidtude=41.5391&longitude=-87.6441&phone=7085010858&[email protected]&website=https://www.holymoly.com&content=This is a third test review via postget. Still trying to add star rating count. Only minimum parameters used. Duplicate reviews are caught and not allowed.&post_category=1198&facebook=https://www.facebook.com/holymolydonuts&country=United States&address=14910 Seeley Ave, Harvey, IL. 60426, USA&twitter=https://www.twitter.com&logo=https://www.thesablebusinessdirectory.com/wp-content/uploads/2019/08/how-much-does-a-website-cost-1024x512.png&images=https://www.thesablebusinessdirectory.com/wp-content/uploads/2019/08/how-much-does-a-website-cost-1024x512.png::https://www.thesablebusinessdirectory.com/wp-content/uploads/2019/08/what-does-a-website-cost-the-complete-guide-feature-image.jpg
Query Parameters:
{ "status": "publish", "country": "United States", "title": "Holy Moly Donut Shop", "bldgno": "14910", "street": "Seeley Ave.", "city": "Harvey", "region": "Illinois", "zip": "60426", "latidtude": "41.5391", "longitude": "-87.6441", "phone": "7085010858", "email": "[email protected]", "website": "https:\/\/www.holymoly.com", "content": "This is a third test review via postget. Still trying to add star rating count. Only minimum parameters used. Duplicate reviews are caught and not allowed.", "post_category": [ "1198" ], "facebook": "https:\/\/www.facebook.com\/holymolydonuts", "address": "14910 Seeley Ave, Harvey, IL. 60426, USA", "twitter": "https:\/\/www.twitter.com", "images": "https:\/\/www.thesablebusinessdirectory.com\/wp-content\/uploads\/2019\/08\/how-much-does-a-website-cost-1024x512.png::https:\/\/www.thesablebusinessdirectory.com\/wp-content\/uploads\/2019\/08\/what-does-a-website-cost-the-complete-guide-feature-image.jpg" }
Response Body:
{ "data": { "id": null, "title": { "raw": null, "rendered": "Holy Moly Donut Shop" }, "slug": null, "link": "https://www.thesablebusinessdirectory.com/business/holy-moly-donut-shop/", "status": null, "type": null, "author": 0, "date": false, "date_gmt": false, "modified": false, "modified_gmt": false, "content": { "raw": null, "rendered": "", "protected": false }, "default_category": null, "post_category": [ { "id": 1198, "name": "Catering", "slug": "catering" } ], "post_tags": [], "package_id": null, "street": null, "country": null, "region": null, "city": null, "zip": null, "map": null, "latitude": null, "longitude": null, "mapview": null, "mapzoom": null, "logo": null, "phone": null, "email": null, "website": null, "twitter": null, "facebook": null, "video": null, "special_offers": null, "business_hours": null, "claimed": { "raw": null, "rendered": "No" }, "featured": false, "rating": 0, "rating_count": 0, "featured_media": 0, "featured_image": [], "images": [], "comment_status": null, "ping_status": null, "meta": [], "guid": { "rendered": null, "raw": null } }, "headers": { "Location": "https://www.thesablebusinessdirectory.com/wp-json/geodir/v2/business/36407", "Allow": "GET, POST" }, "status": 201 }
December 16, 2019 at 10:39 pm #521813The developers will check into it, thanks for reporting.
Can you post your GD status in a private reply?
You can find that at WP Backend – GD – Status
December 16, 2019 at 10:43 pm #521814This reply has been marked as private.December 18, 2019 at 11:39 am #522158Hi Rodney,
Use “street” parameter instead of “address”.
Kiran
-
AuthorPosts
Viewing 4 posts - 1 through 4 (of 4 total)
We have moved to a support ticketing system and our forums are now closed.
Open Support Ticket
To open a new support ticket, first select the relevant forum and then click the "New Post" button. Example: You need support for the core plugin? Click on Core Plugin support and click on the "New Post" Button.
Please read our support policy before starting to use the forum.