• Resolved Smoman

    (@smoman)


    This plugin is great and we are testing it now.

    We need to pass: “X-Api-Key: abcd-efgh-1234567-7890ab-cdefgh12”

    I cannot get it to pass that with any version of typing in “nebearer” or any of this.
    oAuth Bearer accesskey: passed in header as “Authorization: Bearer accesskey”
    (add “nobearer ” – mind the space! – if you want to pass “Authorization:accesskey”)

    I have tried spaces and no spaces and every combo and they keep telling me I have to pass just “X-Api-Key: abcd-efgh-1234567-7890ab-cdefgh12”

    Here is a snip of the debug: DEBUG: arguments: Array ( [timeout] => 5 [headers] => Array ( [Authorization] => Bearer X-Api-Key:nobearer

    Fake API key

    Thank you for your time
    Steve

Viewing 1 replies (of 1 total)
  • Plugin Author berkux

    (@berkux)

    Hi Steve,

    without “nobearer” this is sent:
    Authorization:Bearer OPTIONFIELD

    with “nobearer”:
    Authorization:OPTIONFIELD

    But you need
    X-Api-Key: abcd-efgh-1234567-7890ab-cdefgh12

    This the free plugin can’t do. This is an pro plugin option where you can build the header as you like.
    For further questions on the pro plugin switch to
    X-Api-Key: abcd-efgh-1234567-7890ab-cdefgh12
    please.

    Bernhard

Viewing 1 replies (of 1 total)
  • The topic ‘api call almost working – cant get rid of “bearer”’ is closed to new replies.