REST API for iOS and Andriod
This topic contains 22 replies, has 4 voices, and was last updated by Lwin Lwin Kyi 8 years, 1 month ago.
We have moved to a support ticketing system and our forums are now closed.
Open Support TicketTagged: #GeoDirectory, app, geotheme
-
AuthorPosts
-
June 25, 2017 at 8:32 am #384661
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 paymentRgds,
LLJune 26, 2017 at 10:41 am #384723Hello,
Please see our github repo, it has links to the docs
https://github.com/GeoDirectory/geodir_apiIf you have any questions just ask.
Thanks,
Stiofan
June 28, 2017 at 1:25 am #384943Hi ,
Any example how to use advance search with API ?
Rgds,
LLKJune 29, 2017 at 4:59 am #385086Hi 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,
KiranAugust 11, 2017 at 3:44 am #390646Hi 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,
LLKAugust 11, 2017 at 7:57 am #390671Hi 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-postYou just have to sent data via post method with correct endpoint (ie: http://YOURSITE.COM/wp-json/geodir/v1/places/)
Let us know.
Thanks,
KiranAugust 12, 2017 at 5:06 am #390836Hi 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,
LLKAugust 14, 2017 at 6:32 am #391025Hi 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,
KiranAugust 15, 2017 at 2:35 pm #391292Hi,
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,
LLKAugust 15, 2017 at 5:03 pm #391316This 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
August 17, 2017 at 2:52 pm #391686Hi Stiofan,
Where is their forum ?
What ways you can think of ?Regards,
LLKAugust 17, 2017 at 4:42 pm #391703This is their forum, please try there: https://wordpress.org/support/plugin/rest-api
Thanks,
Stiofan
August 30, 2017 at 1:59 pm #393517Hi Stiofan,
I can’t find much help from their forum.
Can you share the methods that you can think of ?Rgds,
LLKAugust 30, 2017 at 4:02 pm #393530A 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
August 31, 2017 at 4:50 am #393652Hi Stiofan,
Any example link for nonce ?
Any example link for login authentication ?
-
AuthorPosts
We have moved to a support ticketing system and our forums are now closed.
Open Support Ticket