Posting a Header to API (Wrike) request

I am trying to post a header as part of my Invoke-RestMethod request and am facing the following error:

Invoke-RestMethod : Specified value has invalid HTTP Header characters. Parameter name: name 

Here is my line of code:

$FolderRequest = Invoke-RestMethod -uri -Headers @{'Authorization: bearer '=$access_token} 

I am doing it in the exact format as the documentation states:

Posting a Header to API (Wrike) request

Anyone have a clue what I am doing wrong? I know the error is stating that something is wrong with the Name parameter, but I can't fathom what could be wrong with it.

Thanks in advance


Category: api Time: 2016-07-29 Views: 0

Related post

iOS development

Android development

Python development

JAVA development

Development language

PHP development

Ruby development


Front-end development


development tools

Open Platform

Javascript development

.NET development

cloud computing


Copyright (C), All Rights Reserved.

processed in 0.312 (s). 12 q(s)