return;
}
- $api->setCheckIfNoneMatch(true)->setBody(json_encode(
- array('owner' => (string)$path->owner->pseudo, 'geom' => (string)$path->geom)
- ));
+ $data = array('geom' => (string)$path->geom,
+ 'title' => (string)$path->displayTitle);
+ if ($path->creator) {
+ $data['creator'] = (string)$path->creator->pseudo;
+ }
+
+ $api->setCheckIfNoneMatch(true)->setBodyJson($data);
}
}