I am trying to connect to the Sharefile API with Powershell, I am using the instructions found at https://jstrong013.github.io/Invoke-RestMethod-with-ShareFile-API/ to do this.
My problem is that when I enter the username and password for my account I keep getting told that it is incorrect. Could this be because my account is authenticated via SSO from Azure AD? Is there any way to use the API if that is the case or will I need to set up a local sharefile account just for this?
Here is the exact error message:
Execute autorun.exe and install the game to his normal path/folder,when it ask the CD key use the cd key generator. Note that you will probablyneed to disable your antivirus for few minute to get the key, it’s completlysafe the keygen is a false positive so don’t be an elf.8. From now you have all you need if you followed the part 1and have BFME II, right click on your ROTWK iso and mount it with WinCDmu.7. Once you installed the game go to your game folder:C:Program FilesElectronic ArtsLord of the ring Rise of the witch-king Make anew folder that you will name Mini-image and extract the mini image there.
Invoke-RestMethod : {'error':'invalid_grant','error_description':'invalid username or password'}
At C:UsersxxxxxxFor Work LaptopGet API Key for Citrix.ps1:18 char:13
+ $response = Invoke-RestMethod $tokenroute -Method POST -Body $creds - ..
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : InvalidOperation: (System.Net.HttpWebRequest:HttpWebRequest) [Invoke-RestMethod], WebException
+ FullyQualifiedErrorId : WebCmdletWebResponseException,Microsoft.PowerShell.Commands.InvokeRestMethodCommand
ShareFile Developer Community. Citrix ShareFile API provides everything you need to store and share your data. Use the links on this page to explore our API or get involved in a discussion to share your ideas with the community. For existing users, the user is prompted to enter the phone number that is enabled for text message (SMS) or voice on the next login from the Web App, client tools like Citrix Files for Windows, or mobile app like Citrix Files for iOS. See the Web App example: Two-Step Verification for ShareFile apps.