From fd1bf39e9e20e96acf66b4cba32ce7ae7f413af8 Mon Sep 17 00:00:00 2001 From: Edward Delaporte Date: Thu, 14 Jan 2021 13:47:01 -0600 Subject: [PATCH] Get some basic info from a SalesForce API enabled endpoint. --- .gitignore | 3 ++- Toybox/salesforce.ps1 | 22 ++++++++++++++++++++++ 2 files changed, 24 insertions(+), 1 deletion(-) create mode 100644 Toybox/salesforce.ps1 diff --git a/.gitignore b/.gitignore index 54d8b36..81ad23c 100644 --- a/.gitignore +++ b/.gitignore @@ -3,4 +3,5 @@ DONE.md .github_access_token env/* *.json -OneTrust.ipynb \ No newline at end of file +OneTrust.ipynb +*.conf \ No newline at end of file diff --git a/Toybox/salesforce.ps1 b/Toybox/salesforce.ps1 new file mode 100644 index 0000000..b2ce52c --- /dev/null +++ b/Toybox/salesforce.ps1 @@ -0,0 +1,22 @@ +<# +.SYNOPSIS +Some notes on using the SalesForce API. + +.NOTES + +Requires PsIni + +> Install-Module PsIni + +#> + +$FileContent = Get-IniContent ".salesforce.conf" + +$url = $FileContent['salesforce']['url'] +Write-Output $url + +$aboutAPI = curl $url + +$aboutAPI | Format-List + +# Write-Output $aboutAPI. -- 2.47.3