API Endpoint

This topic contains 7 replies, has 3 voices, and was last updated by  D.D 6 years, 11 months ago.

We have moved to a support ticketing system and our forums are now closed.

Open Support Ticket

Tagged: 

  • Author
    Posts
  • #377315

    D.D
    Buyer
    Post count: 199

    Hi,

    how do I retrieve bookmarked/favorite values with the API?

    Thanks.

    #377428

    Paolo
    Site Admin
    Post count: 31206

    Hi and sorry for the late reply, I asked to the developer who built the API to let you know asap.

    Thanks for your patience,

    #377513

    Kiran
    Moderator
    Post count: 7069

    Hi D.D

    There are two parameters favorites_only & favorites_by_user available to filter out the favorites listings.

    favorites_only – used for whether to show only listings favorited by user. Use favorites_only=true to filter only favorited listings.
    favorites_by_user – used to filter the listings favorited by particular user. Use favorites_by_user=12 to filter favorited listings by user 12. Do not add favorites_by_user parameter to filter the favorited listing for current logged user.

    Example:
    /wp-json/geodir/v1/places/?favorites_only=true – Shows the favorited place listings by current logged in user.
    /wp-json/geodir/v1/places/?favorites_by_user=true&favorites_by_user=12 – Shows the favorited place listings by user ID 12.

    Thanks,
    Kiran

    #377576

    D.D
    Buyer
    Post count: 199

    Thanks for the feedback. Is there a way to bookmark/favorite a place through the API?

    The way it works now, I seem to only be able to display favorite listing if the user already added the listing to their favorites via a web browser.

    In essense when I make a GET call for places, theres no bookmark/favorite parameter in the JSON response.

    #377582

    Kiran
    Moderator
    Post count: 7069

    Hi,

    Thanks for the feedback. Is there a way to bookmark/favorite a place through the API?
    <
    No currently no endpoint available to bookmark/favorite a place through the API. We have added in todo tasks, so in future we will add endpoint to favorite a place through the API.

    In essense when I make a GET call for places, theres no bookmark/favorite parameter in the JSON response.
    <
    Yes currently it returns same JSON response for both normal place listings & favorited place listings requests.
    I have added this in todo to add in future.

    Thanks,
    Kiran

    #377665

    D.D
    Buyer
    Post count: 199

    Thanks! Final question … for now 🙂

    The user images are fixed on gravatars even though users can upload their own photo’s.

    Will there be functionality to access the uploaded avatars of user or will I be limited to the randomly generated default gravatar?

    #377690

    Kiran
    Moderator
    Post count: 7069

    Hi,

    On which endpoint you talking about?
    BTW the author avatars are working as per settings at WP Admin > Discussion > Avatars.

    Kiran

    #378397

    D.D
    Buyer
    Post count: 199

    I used a workaround to avoid the gravatar issue.

    Thanks

Viewing 8 posts - 1 through 8 (of 8 total)

We have moved to a support ticketing system and our forums are now closed.

Open Support Ticket