Integrator's GraphQL API Guide


#101

Thank you for replying quickly. Turns out, I’m stupid.


#102

No your not stupid. Its an advanced feature takes a steep learning curve. Check out some examples on here and use the docs on right. Sorry for short answers I’m on my phone.


#103

For this step, do I just create a blank notepad file on my desktop, copy/paste the given example into said notepad file, and edit a few variables before I save the file?


#104

I suggest using notepad++ so it formats syntax. But yes just put it in a text file and save as .js and .json


#105

What do I put down for “Endpoint URL”?

edit: Nevermind, I see that I was supposed to select “Poll Selected Orders v2”, not “Manual”.


#106

Am I doing something wrong?

edit: I opened the “Node.js cmd” app and typed in “npm install C:\Users\Public\sambagloria”, which is where script.js and package.json are saved.


#107

Don’t use users dir windows notoriously restricts it. It says it can’t find the json file. Did you make a package.json file?

It’s probably windows restricting the user dir though.


#108

Okay. I moved it the .js and .json files to “c:\sambagloria”. I opened up Node cmd, typed “cd c:\sambagloria”, then “npm install”. I still think something wrong is happening


#109

Show that dir so I see what files are in it


#110


#111

Delete the node_modules dir then run install command


#112

There’s still some sort of an error.


#113

Remember when you change dir you must redo the npm link node-windows command it must be executed inside that Directory. Also did you run the global command? npm install -g node-windows

EDIT: I think I see your problem… your json file is named package.json.json

You have show extensions off… yet you typed an extension on the json file… so it actually named it package.json and the file type is json so it made package.json.json just rename that file to package you should be good.


#114

Im using the pmpos, its very awesome and woks very well but i need change the username when i print the ticket because although I login with another user and change the usernername in the config file, always prints “Administrator” in the ticket , anyone know how do it?


#115

PMPOS is proof-of-concept. It is up to you to figure out how to modify the code.

Or you can buy the Android Client App.

Or you can use GQL Modules project. It has a plethora of features that PMPOS does not.


#116
> Edit gloriaFoodKey variable to setup Gloria Food key.
> Edit serverKey variable to setup GraphQL authentication key.

Is the “gloriaFoodKey” the secret key we generate in the SambaPOS or the environment key Gloria Food generated and is “serverKey” the key generated by Gloria Food ?

I am confused :frowning:


#117

No gloriafood key is the one you setup in gloriafood config page. Server key is the one you setup in sambapos


#118

thanks, now I have to carefully type in the server key as there is no copy and paste function on Application page :frowning:


#119

Sure there is. Control + c


#120

Not in my SambaPOS Edit Application page some how. I can only use Control-C with the Gloria Food Web page.

Arrgh maybe I can copy it during the generation and before saving it.