src/Bigcommerce/Api/Client.php
public static function createResource($path, $object)
    {
        if (is_array($object)) {
            $object = (object)$object;
        }

        return self::connection()->post(self::$api_path . $path, $object);
    }
public static function createResource($path, $object)
    {
        if (is_array($object)) {
            $object = (object)$object;
        }

        return self::connection()->post(self::$api_path . $path, $object);
    }
public static function createResource ( $ path , $ object ) { if ( is_array ( $ object ) ) { $ object = ( object ) $ object ; } return self :: connection ( ) -> post ( self :: $ api_path . $ path , $ object ) ; }
Send a post request to create a resource on the specified collection.

@param string $path api endpoint
@param mixed $object object or XML string to create
@return mixed
Send a post request to create a resource on the specified collection .