function it_should_call_the_api_with_the_correct_data(ContainerBuilder $container, UploadPieApi $api)
 {
     $api->call('imgdata', 'img_file_name.png', 1)->shouldBeCalled()->willReturn('imgurl');
     $this->load($container, ['expire' => '30m']);
     $this->upload('imgdata', 'img_file_name.png')->shouldReturn('imgurl');
 }
 /**
  * @param string $binaryImage
  * @param string $filename
  *
  * @return string URL to the image
  */
 public function upload($binaryImage, $filename)
 {
     return $this->api->call($binaryImage, $filename, $this->expire);
 }