[Skip to main content](#vessel-content)

#   consume serial using only URL return state ?

##

- **[lionel75](/forum/user/11856-lionel75 "View lionel75's Profile")**
- [![lionel75's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/11856-lionel75 "View lionel75's Profile") Topic Author
- [ Offline](/forum/user/11856-lionel75)

Less More

- Posts: 846
- Thank you received: 92
-
-

12 years 1 month ago -  12 years 1 month ago [\#173513](#173513) by [lionel75](/forum/user/11856-lionel75 "View lionel75's Profile")  *[consume serial using only URL return state ?](/forum/15-general-talk-about-hikaserial/871937-consume-serial-using-only-url-return-state#173513 "-- HikaShop version -- : 2.5.22 -- HikaSerial version -- : 1.8.3 -- Joomla version -- : 2.5.22 -- PHP version -- : 5.3.9 -- Browser(s) name and version -- : many  Hi I don't test but read only the documentation . There is only 3 variables to set to consume serial data http://{YOUR&#95;WEBSITE&#95;URL}/index.php?option=com&#95;hikaserial&amp;ctrl=serial&amp;task=consume&amp;hikaserial&#91;data&#93;={serial.serial&#95;data}&amp;confirmation=1&amp;hikaserial&#91;format&#93;={format} 1 {YOUR&#95;WEBSITE&#95;URL} static predefine by user / dev 2 {serial.serial&#95;data} realtime ( keyboard or scanner ) 3 {format} static predefine by user /dev only HTML seem to be supported  could a security code be add to the URL by default ? i don't have a look to the php code but is there a way that when HKS consume extension by recieve an URL url request ( not HTML input form) that HKS server return information about state ? IF it is the firt time the serial&#95;data is use then return a OK messsge IF the serial&#95;data have been already use return date information ( when use when buy ) and name adress phone of buyer IF the serial is unknow ( not buy ) then return unknown . could json or XML are in the todo list ? if not does the html is XML compatible ( such can also be easy parse like it was xml document using SAX or DOM parser ) I know the documentation i can read &quot;it will consume the serial and display you the details of the serial (the order number, the customer, etc). &quot;. But can the documentation be enhance by describe all the field and the format that could be return ? I think that with those information, a developper without hikaserial could implement / manage the informations / status. In a way serial consumption it is a webservice ( REST SOAP WDSL or whatever you want ) that is already implemented in the server side ( don't know if JSON or XML , HTML transfert format is use ) to be able t obe easy parse in the client side with script ( HTML AJAX javascript or application like java applet silverlight flach .....or whatever you want ) !  Since is use by HTML page ,AJAX, jquery , phonegap and many client MVC client template library ( so..... JSON format must also be implemented rather than XML . Does this make sense ?  Regard's")* was created by *[lionel75](/forum/user/11856-lionel75 "View lionel75's Profile")*

-- HikaShop version -- : 2.5.22
-- HikaSerial version -- : 1.8.3
-- Joomla version -- : 2.5.22
-- PHP version -- : 5.3.9
-- Browser(s) name and version -- : many

Hi
I don't test but read only the documentation . There is only 3 variables to set to consume serial data
http://{YOUR_WEBSITE_URL}/index.php?option=com_hikaserial&amp;ctrl=serial&amp;task=consume&amp;hikaserial[data]={serial.serial_data}&amp;confirmation=1&amp;hikaserial[format]={format}
1 {YOUR_WEBSITE_URL} static predefine by user / dev
2 {serial.serial_data} realtime ( keyboard or scanner )
3 {format} static predefine by user /dev only HTML seem to be supported

a- could a security code be add to the URL by default ?
b- i don't have a look to the php code but is there a way that when HKS consume extension by recieve an URL url request ( not HTML input form) that HKS server return information about state ?
IF it is the firt time the serial_data is use then return a OK messsge
IF the serial_data have been already use return date information ( when use when buy ) and name adress phone of buyer
IF the serial is unknow ( not buy ) then return unknown .
c- could json or XML are in the todo list ? if not does the html is XML compatible ( such can also be easy parse like it was xml document using SAX or DOM parser )
I know the documentation i can read "it will consume the serial and display you the details of the serial (the order number, the customer, etc). ". But can the documentation be enhance by describe all the field and the format that could be return ? I think that with those information, a developper without hikaserial could implement / manage the informations / status.
In a way serial consumption it is a webservice ( REST SOAP WDSL or whatever you want ) that is already implemented in the server side ( don't know if JSON or XML , HTML transfert format is use ) to be able t obe easy parse in the client side with script ( HTML AJAX javascript or application like java applet silverlight flach .....or whatever you want ) !

Since [ Javascript](http://www.indiageeks.in/phonegap-jquery-ajax-example-jsonjavascript-object-notation-response/) is use by HTML page ,AJAX, jquery , phonegap and many client MVC client template library ( [ Knotknout.js](http://knockoutjs.com/) so..... JSON format must also be implemented rather than XML . Does this make sense ?

Regard's

Last edit: 12 years 1 month ago by [lionel75](/forum/user/11856-lionel75 "View lionel75's Profile"). Reason: argue for json implementation

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzE1LWdlbmVyYWwtdGFsay1hYm91dC1oaWthc2VyaWFsLzg3MTkzNy1jb25zdW1lLXNlcmlhbC11c2luZy1vbmx5LXVybC1yZXR1cm4tc3RhdGU/dG1wbD1tYXJrZG93bg==) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[Jerome](/forum/user/80-jerome "View Jerome's Profile")**
- [![Jerome's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar80.png)](/forum/user/80-jerome "View Jerome's Profile")
- [ Away](/forum/user/80-jerome)
- HikaShop core developer

Less More

- Posts: 26401
- Thank you received: 4081
-
- [](http://obsi.dev)
-

12 years 1 month ago [\#173515](#173515) by [Jerome](/forum/user/80-jerome "View Jerome's Profile")  Replied by *[Jerome](/forum/user/80-jerome "View Jerome's Profile")* on topic *[consume serial using only URL return state ?](/forum/15-general-talk-about-hikaserial/871937-consume-serial-using-only-url-return-state#173515 "-- HikaShop version -- : 2.5.22 -- HikaSerial version -- : 1.8.3 -- Joomla version -- : 2.5.22 -- PHP version -- : 5.3.9 -- Browser(s) name and version -- : many  Hi I don't test but read only the documentation . There is only 3 variables to set to consume serial data http://{YOUR&#95;WEBSITE&#95;URL}/index.php?option=com&#95;hikaserial&amp;ctrl=serial&amp;task=consume&amp;hikaserial&#91;data&#93;={serial.serial&#95;data}&amp;confirmation=1&amp;hikaserial&#91;format&#93;={format} 1 {YOUR&#95;WEBSITE&#95;URL} static predefine by user / dev 2 {serial.serial&#95;data} realtime ( keyboard or scanner ) 3 {format} static predefine by user /dev only HTML seem to be supported  could a security code be add to the URL by default ? i don't have a look to the php code but is there a way that when HKS consume extension by recieve an URL url request ( not HTML input form) that HKS server return information about state ? IF it is the firt time the serial&#95;data is use then return a OK messsge IF the serial&#95;data have been already use return date information ( when use when buy ) and name adress phone of buyer IF the serial is unknow ( not buy ) then return unknown . could json or XML are in the todo list ? if not does the html is XML compatible ( such can also be easy parse like it was xml document using SAX or DOM parser ) I know the documentation i can read &quot;it will consume the serial and display you the details of the serial (the order number, the customer, etc). &quot;. But can the documentation be enhance by describe all the field and the format that could be return ? I think that with those information, a developper without hikaserial could implement / manage the informations / status. In a way serial consumption it is a webservice ( REST SOAP WDSL or whatever you want ) that is already implemented in the server side ( don't know if JSON or XML , HTML transfert format is use ) to be able t obe easy parse in the client side with script ( HTML AJAX javascript or application like java applet silverlight flach .....or whatever you want ) !  Since is use by HTML page ,AJAX, jquery , phonegap and many client MVC client template library ( so..... JSON format must also be implemented rather than XML . Does this make sense ?  Regard's")*

Hi,

Did you read this documentation ?
[ www.hikashop.com/support/documentation/1...onsume-features.html](http://www.hikashop.com/support/documentation/138-consume-features.html)

Because, mostly all answers of your questions are there.

Regards,

---

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

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzE1LWdlbmVyYWwtdGFsay1hYm91dC1oaWthc2VyaWFsLzg3MTkzNy1jb25zdW1lLXNlcmlhbC11c2luZy1vbmx5LXVybC1yZXR1cm4tc3RhdGU/dG1wbD1tYXJrZG93bg==) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

Board Categories HikaShop Install &amp; Update Product &amp; Category Display Content Creation Sales and Orders Orders management Reports &amp; Statistics Customers Checkout Payment Methods Shipping Methods Import &amp; Export (CSV, XLS…) Specific Features Affilation Taxes Wishlist Vote Carousel &amp; Slider Mass Actions Filters &amp; Search Discount &amp; Coupon Feature Request Integrations Showcase General Talk about HikaShop Development HikaShop 3.0 Beta Translation Commercial Jobs HikaShop Components HikaMarket Market: Feature requests Market: How to? Market: Bug Report HikaSerial General talk about HikaSerial Serial: Bug Report Serial: How to? Support en Français de HikaSerial (French Support) HikaSubscription HikaAuction Auction: Feature requests Auction: How to? Auction: Bug report Hikashop around the world Support en Français (French Support) Russian FAQ. Курс выживания с Hikashop. Частые вопросы и о Расширения Hikashop Наши сайты на Hikashop 日本語版サポート(Japanese Support) Thai German Archives Bug Report How to?

Moderators: [Obsidev](/forum/user/7040-obsidev "View Obsidev's Profile")

[](/forum/topics/feed/mode-topics?format=feed&type=rss)

Time to create page: 0.046 seconds

[Powered by](/forum/credits) [Kunena Forum](https://www.kunena.org)
