Board
Voters
Be the first who like this!
0

Api - creating post on behalf of customer doesn't work properly

In Progress
Javid Karimov
Javid Karimov

Hello. When I want to create post in behalf of customer, it is added on behalf of my name, not customer name. This is my code:
$responsePost = Http::withHeaders([
'Authorization' => 'Bearer '.env('PR_API')
])->post('https://productroad.com/api/v1/posts/create/', [
'board' => $data['board'],
'title' => $data['title'],
'content' => $data['content'],
'email' => $email,
'full_name' => $fullName
]);

Alex
Alex team
alex

@Javid Karimov please use endpoint <https://productroad.com/api/v1/posts/create/as-user/>, I've changed documentation

Javid Karimov
Javid Karimov
javid-karimov

@Alex, thanks a lot. it works

Alex
Alex team
set status to
In Progress
alex

Thank you for the report, I'm checking.

Javid Karimov
Javid Karimov
javid-karimov

@Alex, Thanks Alex