// Send the POST request to Freelancer API
$response = Http::withHeaders($headers)->post('https://www.freelancer-sandbox.com/api/projects/0.1/projects/', $projectData);
// Decode the JSON response to access the project ID
$responseData = json_decode($response->body(), true);
// Check if the response includes the project ID
if (isset($responseData['id'])) {
$freelancerProjectID = $responseData['id'];
// Update the ProjectRoles entry with the Freelancer Project ID
$projectRole->freelancerProjectID = $freelancerProjectID;
$projectRole->save();
} else {
// Log or handle the case where the project ID is not returned in the response
\Log::error("Freelancer project ID not found in the response.");
}
\Log::info("Freelancer API response: " . $response->body());
Client info
eya****mad
The client's account will appear to you if they contact you
Beware of scams
If you are being asked to pay a security deposit, or if you are being asked to chat on Telegram, WhatsApp, or another messaging platform, it is likely a scam. Report these RFPs or contact Support for assistance.