You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is there some known API standard? Provide the Invoke-RestMethod error and status code and the content object?
But this is stepping away from returning simple Powershell objects to the end users.
I think Invoke-TwitterAPI should return a API like structure (error code, status code, description, content (json)).. and each helper function has the code to provide the error as a warning, or provide the content. What do you think?
Output Objects
The Twitter API outputs JSON objects natively.
See Twitter's Introduction to Tweet JSON for details.
Output Streams
Null Response
What happens when a request is made for a user/status/etc that does not exist or results is null?
The text was updated successfully, but these errors were encountered: