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
  • Author
    Posts
  • #521802

    Rodney Chatman
    Expired Member
    Post count: 89

    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&region=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
    }
    #521813

    Alex Rollin
    Moderator
    Post count: 27815

    The 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

    #521814

    Rodney Chatman
    Expired Member
    Post count: 89
    This reply has been marked as private.
    #522158

    Kiran
    Moderator
    Post count: 7069

    Hi Rodney,

    Use “street” parameter instead of “address”.

    Kiran

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
20% Discount Offer
Hurry! Get your 20% discount before it expires. Get 20% Discount