I suspect that I will need to generate the $Resource from the $ResourceUrl.
If I don't find a resource with the full text, then look for partial match.
I would like to have to only supply one parameter, so less parameters are required to do manual Invoke-TwitterAPI commands.
In the function Invoke-TwitterAPI, we require 2 parameters:
$Resource is used to find the RateLimitStatus on that resource. And $ResourceUrl is used to build the OAuthSettings.
But some resources are like this:
And I need to replace :place_id in the ResourceUrl with the actual value of the place_id parameter.
I suspect that I will need to generate the $Resource from the $ResourceUrl. If I don't find a resource with the full text, then look for partial match.
I would like to have to only supply one parameter, so less parameters are required to do manual Invoke-TwitterAPI commands.