Thank you very much, Donald! On 4 October 2017 at 06:59, Donald Szeto <don...@apache.org> wrote:
> Hi Noelia, > > The URL should be http://localhost:7070/events.json?accessKey=myaccesskey > instead. > > Regards, > Donald > > On Tue, Oct 3, 2017 at 6:10 AM, Noelia Osés Fernández <no...@vicomtech.org > > wrote: > >> Hi all, >> >> I'm new with Prediction IO and in order to understand how it works I'm >> customizing the Universal Recommender template to a very simple case (the >> handmade example works). >> >> I have unzipped the universal recommender and changed the folder name to >> TinyApp. >> >> I have then used 'pio app new TinyApp' to create the app id and access >> key. >> >> I'm now trying to add some data (I'm using the proper access key as >> listed in pio app list instead of *myaccesskey*): >> >> curl -i -X POST http://localhost:7070/events.json?access_key= >> *myaccesskey* -H "Content-Type: application/json" -d '{ >> "event" : "view", >> "entityType" : "user", >> "entityId" : "u1", >> "targetEntityType" : "item", >> "targetEntityId" : "i1", >> }' >> >> But I get the following error message: >> >> HTTP/1.1 401 Unauthorized >> Server: spray-can/1.3.3 >> Date: Tue, 03 Oct 2017 13:06:58 GMT >> Content-Type: application/json; charset=UTF-8 >> Content-Length: 32 >> >> {"message":"Missing accessKey."} >> >> Why is this? What am I doing wrong? >> >> Thank you very much for your help! >> >> Regards, >> Noelia >> >> >> >> >> > -- <http://www.vicomtech.org> Noelia Osés Fernández, PhD Senior Researcher | Investigadora Senior no...@vicomtech.org +[34] 943 30 92 30 Data Intelligence for Energy and Industrial Processes | Inteligencia de Datos para Energía y Procesos Industriales <https://www.linkedin.com/company/vicomtech> <https://www.youtube.com/user/VICOMTech> <https://twitter.com/@Vicomtech_IK4> member of: <http://www.graphicsmedia.net/> <http://www.ik4.es> Legal Notice - Privacy policy <http://www.vicomtech.org/en/proteccion-datos>