OEM Tricks (API automation)
Different code snippets often needed by our OEMs to automate things around management and app modifications. I put here a collection of some typical requirements, feel free to steal and reuse whatever code.
-
LoginAs (PowerShell + NodeJs) uses QPS API (Proxy Service API) to impersonate a given user from a Powershell command-line
-
QPS (NodeJs) same as above but only the essential code for NodeJs, it opens a minimalistic Express server through which you can login as anybody
-
QRS unallocate accesspasses (NodeJs) looks for any allocated Professional and Analyzer access pass that hasn't been used by the user for more than 7 days and unallocates it. This can help recycle licenses.
-
Minimalistic Enigma example (NodeJs) returns a list of available documents using Engine API wrapper "Enigma"
-
Two best friends QRS+Enigma work togehter to achieve a sequence of tasks like creating an empty copy of an app