Final save before Thanksgiving holiday! Blacklane has been completed. Some small scripts were updates. Downloaded new - but error prone - SPS templates.
This commit is contained in:
Binary file not shown.
10
Scripts/API_Tests/get-groups-filtering.py
Normal file
10
Scripts/API_Tests/get-groups-filtering.py
Normal file
@ -0,0 +1,10 @@
|
||||
import Apikeys
|
||||
import requests
|
||||
|
||||
company = "EJP"
|
||||
url = f"https://api.northpass.com/v2/groups?filter[name][eq]={company}"
|
||||
apikey = Apikeys.DATASNIPPER
|
||||
headers = {"X-Api-Key":apikey}
|
||||
|
||||
response = requests.get(url, headers=headers)
|
||||
print(response.text)
|
||||
10
Scripts/js-date.js
Normal file
10
Scripts/js-date.js
Normal file
@ -0,0 +1,10 @@
|
||||
//let jsDate = new Date();
|
||||
//let jsFormattedDate = jsDate.getFullYear() + ("0" + (jsDate.getMonth() + 1)).slice(-2) + ("0" + jsDate.getDate()).slice(-2);
|
||||
//let liquidFormattedDate = '{{ "now" | date: "%Y%m%d" }}';
|
||||
//let personCreateDate = moment.unix('{{ current_person.created_at }}').formate("%Y%m%d");
|
||||
//console.log(jsFormattedDate);
|
||||
//console.log(liquidFormattedDate);
|
||||
//console.log(personCreateDate)
|
||||
//
|
||||
let dateTest = "2022-04-13 15:00:03 +0000".split(" ")[0]
|
||||
console.log(dateTest)
|
||||
Reference in New Issue
Block a user