Forum Replies Created

Viewing 1 replies (of 1 total)
  • Thread Starter kmadenski

    (@kmadenski)

    Maybe someone will need:
    I found this code in cf7-to-api/includes/class-cf7-api-admin.php

    
    $args = array(
                    'timeout'     => 5,
                    'redirection' => 5,
                    'httpversion' => '1.0',
                    'user-agent'  => 'WordPress/' . $wp_version . '; ' . home_url(),
                    'blocking'    => true,
                    'headers'     => array(),
                    'cookies'     => array(),
                    'body'        => null,
                    'compress'    => false,
                    'decompress'  => true,
                    'sslverify'   => true,
                    'stream'      => false,
                    'filename'    => null
                );
    

    I set
    'headers' => array()
    on:
    'headers' => array(htmlspecialchars("authorization: Token <your_64_char_api_key>"),"content-type: application/json"),

    • This reply was modified 7 years ago by kmadenski.
Viewing 1 replies (of 1 total)