In the images field: {}
Please help me solve the problem.
Code: Select all
$url = 'http://localhost/wb/api/index.php/v1/content/articles';
$data = [
"title" => "New Article",
"articletext" => "Here is the article text",
"catid" => 8,
"language" => "*",
"images" => json_encode([
"image_intro" => "images/sampledata/cassiopeia/nasa1-1200.jpg#joomlaImage://local-images/sampledata/cassiopeia/nasa1-1200.jpg?width=1200&height=400",
"float_intro" => "",
"image_intro_alt" => "alt",
"image_intro_caption" => "caption",
"image_fulltext" => "",
"float_fulltext" => "",
"image_fulltext_alt" => "alt",
"image_fulltext_caption" => "caption"
])
];