Use Execute Script Action to invoke JScript, which runs a query to pull the value out of a Program Setting stored in [ProgramSettingValues] (the value of which happens to be a SQL query), then use JScript to execute that SQL Script, which has the effect of updating a row in the DB [EntityStateLogs] table … for editing Timeclock Punch Data…
If anyone can spare a little time I could really do with a bit of help getting off the ground.
Am sure once I have a starting point I can get to grips with it but am just struggling to get started.
I now have testing account but am not sure how to use these details
I might have bitten off more than I can chew…
Not sure how to start the script.
Documentations says;
To access our REST API you must authenticate via HTTP username and password,
these will be provided to you along with this document.
I have the username and password but an unsure how to begin.
We are missing some key information. We might need to see more documentation on the actual software like when you login to the software there should be some options you need to configure there. Is there a link to any documentation for the actual software?
I would just ask to see documentation for the software. You could say it would help in your decision to use it.
PS: Tons of documentation and examples on REST if you google it. One that comes up a lot is Wordpress a very popular online blog that has REST API available for users. You might get ideas by reading how it works there.
I am trying to attempt myself at the minute for what its worth.
Starting with documentation;
POST URL: https://testau.newbookpms.com/rest/auth_test
HTTP Username: As provided
HTTP Password: As provided
JSON Request:
{
"api_key": "your_api_key_here"
}
JSON Response:
{
"success": "You have successfully authenticated to NewBook Test Property"
}
Am just struggling on using POST URL.
From what Ive read online and in documentation (an I may very well have misunderstood) to test my script with auth test i need to ‘post’
I am so so confused, so many different examples and cant even get my head round where the post url should be going into it
ajax
cURL
jQuery
My head hurts LOL
I am reading all sorts but dont even know if its the right thing for what I need. LOL
Everything I get too either seems to be super basic single page JSON examples or overly complex examples
Have done some test coding following the single page basic examples and understand the base JSON part.
That url is about a specific API but it explains it simple. You might get idea from it. The software your using assumes you know how to use it and doesnt explain it well for a beginner.
Am confused on the use of POST URL in the documentation.
From what I see you either POST/PUT or GET which seems to me think like its one way or the other.
How am I ment to POST ‘api_key’ and get a response?
Presumably Im obviously missing something here.