Retrieve serials based on user login info

  • Posts: 15
  • Thank you received: 0
5 years 5 months ago #191782

I want to build a HikaShop website and HikaSerial.
I understand that one can consume the serial via a webservice from an outside application using a url that has the serial number as one of the parameters.

My question is the following:
Is it possible to retrieve the serials assigned to a user by providing the user login information from an outside application using a similar webservice url?

I am new to web development. I appreciate your help on this.

Please Log in or Create an account to join the conversation.

  • Posts: 24305
  • Thank you received: 3747
  • MODERATOR
5 years 5 months ago #191792

Hi,

HikaSerial does not propose such feature in his web-services but the information can be easily retrieve in the database.
Using the login you can get the joomla user id, then you can retrieve the HikaShop user id (HikaShop can have guest account so the id is different than the joomla one ; but you have the field "user_cms_id" to link them).
Thanks to the HikaShop user id, you can look in the HikaSerial serial table and list the serial assign to the user.

The best to extend the HikaSerial webservices will be to use a custom plugin ; otherwise it require some modifications in the core files so you wouldn't be able to update HikaSerial after that (or you will loose your modifications).

Regards,


Jerome - Obsidev.com
HikaMarket & HikaSerial developer / HikaShop core dev team.

Also helping the HikaShop support team when having some time or couldn't sleep.
By the way, do not send me private message, use the "contact us" form instead.
The following user(s) said Thank You: Rajaft

Please Log in or Create an account to join the conversation.

Moderators: Obsidev
Time to create page: 0.051 seconds
Powered by Kunena Forum