public function sendCalendar($externalCoverageId, $location)
    {
        $client  = $this->httpClient;

        $request = $client->post(
            [self::ENTRY_POINT.'/{coverage}/'.self::EXPORT_API, ['coverage' => $externalCoverageId]],
            ['Content-Type => multipart/form-data'],
            null,
            ['exceptions' => false]
        );

        $request->addPostFile('file', $location);

        return $client->send($request);
    }
public function sendCalendar($externalCoverageId, $location)
    {
        $client  = $this->httpClient;

        $request = $client->post(
            [self::ENTRY_POINT.'/{coverage}/'.self::EXPORT_API, ['coverage' => $externalCoverageId]],
            ['Content-Type => multipart/form-data'],
            null,
            ['exceptions' => false]
        );

        $request->addPostFile('file', $location);

        return $client->send($request);
    }
public function sendCalendar ( $ externalCoverageId , $ location ) { $ client = $ this -> httpClient ; $ request = $ client -> post ( [ self :: ENTRY_POINT . '/{coverage}/' . self :: EXPORT_API , [ 'coverage' => $ externalCoverageId ] ] , [ 'Content-Type => multipart/form-data' ] , null , [ 'exceptions' => false ] ) ; $ request -> addPostFile ( 'file' , $ location ) ; return $ client -> send ( $ request ) ; }
Post a calendar to tartare

@param string $externalCoverageId External coverage Id
@param string $location Calendar location
@return Response Guzzle Response
Post a calendar to tartare