REST API for iOS and Andriod

This topic contains 22 replies, has 4 voices, and was last updated by  Lwin Lwin Kyi 6 years, 7 months ago.

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

Open Support Ticket
  • Author
    Posts
  • #384661

    Lwin Lwin Kyi
    Free User
    Post count: 19

    Hi ,

    I went through randomly in this forum for API.

    May I know where is the API documents for

    a) near me map of all the listing , maker culster
    b) advance search
    c) claim listing
    d) price and payment

    Rgds,
    LL

    #384723

    Stiofan O’Connor
    Site Admin
    Post count: 22956

    Hello,

    Please see our github repo, it has links to the docs
    https://github.com/GeoDirectory/geodir_api

    If you have any questions just ask.

    Thanks,

    Stiofan

    #384943

    Lwin Lwin Kyi
    Free User
    Post count: 19

    Hi ,

    Any example how to use advance search with API ?

    Rgds,
    LLK

    #385086

    Kiran
    Moderator
    Post count: 7069

    Hi LLK,

    Please check these examples https://wpgeodirectory.com/support/topic/json-api-to-search-near-by-venues/#post-382051 & https://wpgeodirectory.com/support/topic/filter-options/#post-367934
    to know how to filter the listings results via search with REST API.

    You just need to pass field & value to endpoint. Ex: &featured_only=1 OR &price=100.00 etc.

    Thanks,
    Kiran

    #390646

    Lwin Lwin Kyi
    Free User
    Post count: 19

    Hi Kiran,

    Is it possible to create new post from the mobile iOS/Andorid App using this API ?
    I want to let my user post new listing directly from the mobile phone app.

    If possible , how can I do that , any example ?

    Regards,
    LLK

    #390671

    Kiran
    Moderator
    Post count: 7069

    Hi LLK,

    Yes you can submit listing from mobile by sending data via REST API.
    Please check this post https://wpgeodirectory.com/support/topic/update-listing-location-via-wp-api/#post-332863
    and
    https://wpgeo.directory/rest-api/cpt/#create-a-post

    You just have to sent data via post method with correct endpoint (ie: http://YOURSITE.COM/wp-json/geodir/v1/places/)

    Let us know.

    Thanks,
    Kiran

    #390836

    Lwin Lwin Kyi
    Free User
    Post count: 19

    Hi Kiran,

    Thanks for your reply.
    I did not see multiple photos upload in your Add/Update listing example.
    And how to get package prices and how to add listing with package pricing ?
    And how to add/update listing securely via this API ?

    Regards,
    LLK

    #391025

    Kiran
    Moderator
    Post count: 7069

    Hi LLK,

    > I did not see multiple photos upload in your Add/Update listing example.
    <
    Check this post – https://wpgeodirectory.com/support/topic/posting-review-rest-api/#post-374259

    > And how to get package prices and how to add listing with package pricing ?
    <
    Currently the payment system not integrated with REST API, but we have plan to integrate it in future.

    > And how to add/update listing securely via this API ?
    <
    Please follow this whole thread https://wpgeodirectory.com/support/topic/geo-api-post/

    Thanks,
    Kiran

    #391292

    Lwin Lwin Kyi
    Free User
    Post count: 19

    Hi,
    The API is exposed to public.
    Any one can query vi API and used in their mobile App.

    How can API allow only specific App ?

    Allow only site owner mobile app and not others.

    Regards,
    LLK

    #391316

    Stiofan O’Connor
    Site Admin
    Post count: 22956

    This is more of a general WP API question that might be better asked in their forums.
    There are many ways i can think of but perhaps they have a standard way of doing it.

    Thanks,

    Stiofan

    #391686

    Lwin Lwin Kyi
    Free User
    Post count: 19

    Hi Stiofan,

    Where is their forum ?
    What ways you can think of ?

    Regards,
    LLK

    #391703

    Stiofan O’Connor
    Site Admin
    Post count: 22956

    This is their forum, please try there: https://wordpress.org/support/plugin/rest-api

    Thanks,

    Stiofan

    #393517

    Lwin Lwin Kyi
    Free User
    Post count: 19

    Hi Stiofan,
    I can’t find much help from their forum.
    Can you share the methods that you can think of ?

    Rgds,
    LLK

    #393530

    Stiofan O’Connor
    Site Admin
    Post count: 22956

    A simple method would be a nonce or some other type of secret key that gets sent to the api requires and without it it will be rejected.
    Another way might be to require login authentication.

    Stiofan

    #393652

    Lwin Lwin Kyi
    Free User
    Post count: 19

    Hi Stiofan,

    Any example link for nonce ?

    Any example link for login authentication ?

Viewing 15 posts - 1 through 15 (of 23 total)

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

Open Support Ticket