src/Client/AllegroRestApi.php
/**
     * Creates request headers as string
     * using given array
     *
     * @param array $headers HTTP headers
     * @return  string  Request headers
     */
Creates request headers as string
using given array


Creates request headers as string using given array
public function parseHeaders(array $headers)
    {
        $stringHeaders = '';
        foreach ($headers as $header => $value) {
            $stringHeaders .= "$header: $value\r\n";
        }
        return $stringHeaders;
    }
public function parseHeaders ( array $ headers ) { $ stringHeaders = '' ; foreach ( $ headers as $ header => $ value ) { $ stringHeaders .= " $ header :  $ value \r \n " ; } return $ stringHeaders ; }
Creates request headers as string
 using given array
Creates request headers as string using given array
// Creating variable for headers // Loop over each of header // Adding header line // Returning headers