Jump to content

darknessgc

Members
  • Posts

    7
  • Joined

  • Last visited

About darknessgc

  • Birthday 03/02/1981

Profile Information

  • Location
    France
  • Activity
    Other

darknessgc's Achievements

Newbie

Newbie (1/14)

1

Reputation

  1. Hi, I'm interested in you subject. I'm looking to do the same things too , it's seems not easy to be able to control resources rights using an authentification... I don't want, and I'm sure you too, any customer with the api key able to see every customer private informations. If you find a way... let me know , i'll do the same.
  2. Hi, did you try to put the following at the end of you request : &output_format=JSON with the webservice I use , for my android app , I'm using it , it's rocks. :-)
  3. Bonjour à tous, je me permet de vous consulter concernant l'utilisation des webservices. actuellement en développement d'une application android , j'utilise les webservices de prestashop afin de récupérer certaines informations , notamment la liste des articles avec les descriptions , avec succès. néanmoins je me heurte à plusieurs difficultés, relative à la sécurité. - dans mon application j'enregistre la clé du webservice , qui est par conséquent utilisé pour effectuer l'accès au webservice. cette clé me permet d'accéder à la ressource customer notamment, mais elle me permet d'accéder à la totalité des informations des customer (afin de ressortir l'info que pour un customer , on pourrais utiliser les filtres, mais cela ne protègerait pas l'accès à la liste de tout mes clients si dans mon navigateur je saisissait la clé sans filtre) j'aimerai savoir si à votre connaissance , il serait possible qu'un paramètre d'identification par le couple email / mot de passe ou hash puisse limiter l'accès aux ressources uniquement de l'utilisateur identifié. Je suis ouvert à toute suggestion. Bon prestashop à tous.
  4. Bonjour, pouvez vous m'en dire plus sur votre configuration (local / web) en toute logique la page affiché pour http://localhost/ (ou http://XXX.XXX.XXX.XXX/api/ devrais vous retourner quelque chose de l'ordre de : This XML file does not appear to have any style information associated with it. The document tree is shown below. <prestashop xmlns:xlink="http://www.w3.org/1999/xlink"> <api shop_name="XXXXXXXX"> <customers xlink:href="http://XXXXXXXX/api/customers" get="true" put="false" post="false" delete="false" head="false"> <description xlink:href="http://XXXXXXXX/api/customers" get="true" put="false" post="false" delete="false" head="false">The e-shop's customers</description> <schema xlink:href="http://XXXXXXXX/api/customers?schema=blank" type="blank"/> <schema xlink:href="http://XXXXXXXX/api/customers?schema=synopsis" type="synopsis"/> </customers> </api> </prestashop> pour peu que vous ayez activé les webservices et y avoir associé des données avec des GET si vous activez le GET sur customers http://XXXXXXXXXX/api/customers?ws_key=XXXXXXXXXX&display=full qu'est-ce que cela vous donnes t'il ?
  5. HI, I don't really understand what you are looking for ? hypothesis : 1 category with 1000 products. You want to retrieve the 1000 products id,name, descriptions,prices or you only want to have the count of them , so the number 1000 return. cause for the first one , it's webservice with filters and for the second one it's webservice with parameters and maybe with necessary creating a counting one. you can refer to the chapter 8 of the prestashop documentation (advanced use) of the webservices.
  6. Hi, 1. There is for sure some android application who's using prestashop webservice to provide data to their application , you can easily find them at the play store of google , like PrestaShopMobile from eMagicOne for example. 2. You can have the list of products of category from the webservice using the &filter , and after that you can count the result cause is the length of your active result in you android code. 3. You can create a listview and parsing the result from your webservice request for example.
  7. Hi, If you following this : http://flowcoding.com/prestashop-webservice-json Sure you can do what U want.
×
×
  • Create New...