public static function all($page = 1, $per_page = 10)
    {
        $categories = self::get(
            "/categories",
            ['query' => ['page' => $page, 'per_page' => $per_page]]
        );

        $categoriesArray = self::getArray($categories->getBody(), get_called_class());

        return new ArrayObject($categoriesArray, $categories->getHeaders());
    }