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 https://www.wrike.com/api/v3/folders -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

Replay

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

Related post

iOS development

Android development

Python development

JAVA development

Development language

PHP development

Ruby development

search

Front-end development

Database

development tools

Open Platform

Javascript development

.NET development

cloud computing

server

Copyright (C) avrocks.com, All Rights Reserved.

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