Okay
  Public Ticket #2726434
REST API
Closed

Comments

  • krishna aura started the conversation

    Can I get API for my mobile app? Default wordpress API is working in this?

    Can I use this documentation for amelia 

    https://developer.wordpress.org/rest-api/extending-the-rest-api/adding-rest-api-support-for-custom-content-types/

  • [deleted] replied

    Hi Krishna,

    thank you for taking interest in Amelia, and for contacting us!

    I apologize for the later response as we don't work on weekends.

    We have API Routes for the Amelia app, but most of them are protected depends on of the permissions that is set in WordPress Accounts. You can check those API Routes in this file ../wp-content/plugins/ameliabooking/src/Infrastructure/Routes/Routes.php

    At the moment we have some JavaScript hooks that are triggered depending on the view:

    window.beforeAddToCalendarLoaded()
    window.beforeBookingLoaded()
    window.beforeSearchLoaded()
    window.beforeSearchFiltered()
    window.afterSearchFiltered()
    window.beforeConfirmedBooking()
    window.beforeCatalogLoaded()
    window.afterSelectCatalogCategory(object_category)
    window.beforeCatalogCategoryLoaded(object_category)
    window.beforeCatalogServiceLoaded(object_category, object_service)
    window.afterSearchActivateService(object_appointment, object_serviceActive)
    window.afterSearchGoToSecondStep(object_appointment, object_serviceActive)
    window.afterBookingSelectDateAndTime(object_appointment, object_serviceId, object_providerId, object_locationId)
    window.afterBookingSelectService(object_appointment, object_serviceId, object_providerId, object_locationId)
    window.beforeConfirmBookingLoaded(object_appointment, object_service, object_provider, object_location)
    window.afterConfirmBooking(object_appointment, object_service, object_provider, object_location)

    JS files are modified (minimized) in public version of plugin (in our development environment is accessible), but unfortunately I can not send you our source code because that is the policy of our company.

    All those files that have extension .vue are compressed and minimized in JS files that is very hard and not recommended modifying. So in order to add some other features you can extract the js and customise it.

    You can find an official documentation here:

    https://wpamelia.com/documentation/

    However, we don't have a separate API documentation at the moment.



  • krishna aura replied

    **** URGENT******

    Could you please reply ASAP.I want to switch another plugin to this one if these requirements can be done.

    Ok..Thank you.

    JS files are modified (minimized) in public version of plugin (in our development environment is accessible), but unfortunately I can not send you our source code because that is the policy of our company.

    After purchase the plugin can I access this?

    Some more requirements

    1.Only registered user can book the event. When I come across your site unregistered user can also book the event.

    2.Gift my membership to friend

    3.Pause my membership for a period(I have taken a membership of 1month and after 10 days I want to freeze that membership for 1week and then continue the same)

    3.Can integrate events to woocommerce memberships?

  • [deleted] replied

    Hi Krishna,

    thank you for the kind reply.

    Yes, you can use JS hooks provided after purchase, however, no we cannot provide the source code itself due to company policy, unfortunately.

    1. Anyone can book the event, Amelia currently does not have any restrictions or limitations that can be set - you can use an additional layer of password request or any kind of login info via another plugin, that will protect the page where Amelia booking is (the access to that page would be login protected).

    2. Amelia does not have membership program currently; all appointments that are made belong to the person who is making the booking with their information. 

    3. As advised, we currently don't have a membership program; you can use an additional plugin for memberships to create a paywall towards Amelia; there are many WP membership plugins available.

    4. As we have an integration with WooCommerce it would be good to check if they have this program; however, as WooCommerce payment is initiated as the last step of booking, this would allow the customer to choose date, time, employee, and then be requested in WooCommerce to create a membership.

    You can suggest these features in feature request here, or check if there is such request there and vote for it. If you create a new request, users will be able to vote for it and it can be considered in the future. We have a lot of feature requests,  the most requested features are in the top of the list and we really try to implement as many new features in each update.

    If you have any other questions or concerns feel free to open a new ticket and we will gladly help out.