SFAPIclient/SFAPIclient.php
public function addTag(array $data)
    {
        try {
            $response = Requests::post(
                $this->getConstant('SFAPI_URL') . '/tags/add',
                $this->headers,
                array('data' => json_encode($data)),
                array('timeout' => $this->timeout)
            );
            $response_data = json_decode($response->body);

            return $response_data;
        } catch (Exception $e) {
            return $this->exceptionHandling($e);
        }
    }
public function addTag(array $data)
    {
        try {
            $response = Requests::post(
                $this->getConstant('SFAPI_URL') . '/tags/add',
                $this->headers,
                array('data' => json_encode($data)),
                array('timeout' => $this->timeout)
            );
            $response_data = json_decode($response->body);

            return $response_data;
        } catch (Exception $e) {
            return $this->exceptionHandling($e);
        }
    }
public function addTag ( array $ data ) { try { $ response = Requests :: post ( $ this -> getConstant ( 'SFAPI_URL' ) . '/tags/add' , $ this -> headers , array ( 'data' => json_encode ( $ data ) ) , array ( 'timeout' => $ this -> timeout ) ) ; $ response_data = json_decode ( $ response -> body ) ; return $ response_data ; } catch ( Exception $ e ) { return $ this -> exceptionHandling ( $ e ) ; } }
Create new tag.

@param array $data
@return mixed|stdClass
Create new tag .