<?php$url = 'https://api.ayrshare.com/api/profiles';$apiKey = 'API_KEY'; // Replace with your actual API key$profileKey = 'PROFILE_KEY'; // Replace with your actual Profile key$curl = curl_init();curl_setopt_array($curl, [ CURLOPT_URL => $url, CURLOPT_RETURNTRANSFER => true, CURLOPT_CUSTOMREQUEST => 'DELETE', CURLOPT_HTTPHEADER => [ 'Content-Type: application/json', 'Authorization: Bearer ' . $apiKey, 'Profile-Key: ' . $profileKey ],]);$response = curl_exec($curl);if (curl_errno($curl)) { echo 'Error:' . curl_error($curl);} else { echo json_encode(json_decode($response), JSON_PRETTY_PRINT);}curl_close($curl);
using System;using System.Net.Http;using System.Threading.Tasks;class Program{ static async Task Main(string[] args) { using var client = new HttpClient(); var requestUri = "https://api.ayrshare.com/api/profiles"; var bearerToken = "Bearer API_KEY"; var profileKey = "PROFILE_KEY"; using var request = new HttpRequestMessage(HttpMethod.Delete, requestUri); request.Headers.Add("Authorization", bearerToken); request.Headers.Add("Profile-Key", profileKey); try { using var response = await client.SendAsync(request); response.EnsureSuccessStatusCode(); var responseBody = await response.Content.ReadAsStringAsync(); Console.WriteLine(responseBody); } catch (HttpRequestException e) { Console.WriteLine($"Error: {e.Message}"); } }}
<?php$url = 'https://api.ayrshare.com/api/profiles';$apiKey = 'API_KEY'; // Replace with your actual API key$profileKey = 'PROFILE_KEY'; // Replace with your actual Profile key$curl = curl_init();curl_setopt_array($curl, [ CURLOPT_URL => $url, CURLOPT_RETURNTRANSFER => true, CURLOPT_CUSTOMREQUEST => 'DELETE', CURLOPT_HTTPHEADER => [ 'Content-Type: application/json', 'Authorization: Bearer ' . $apiKey, 'Profile-Key: ' . $profileKey ],]);$response = curl_exec($curl);if (curl_errno($curl)) { echo 'Error:' . curl_error($curl);} else { echo json_encode(json_decode($response), JSON_PRETTY_PRINT);}curl_close($curl);
using System;using System.Net.Http;using System.Threading.Tasks;class Program{ static async Task Main(string[] args) { using var client = new HttpClient(); var requestUri = "https://api.ayrshare.com/api/profiles"; var bearerToken = "Bearer API_KEY"; var profileKey = "PROFILE_KEY"; using var request = new HttpRequestMessage(HttpMethod.Delete, requestUri); request.Headers.Add("Authorization", bearerToken); request.Headers.Add("Profile-Key", profileKey); try { using var response = await client.SendAsync(request); response.EnsureSuccessStatusCode(); var responseBody = await response.Content.ReadAsStringAsync(); Console.WriteLine(responseBody); } catch (HttpRequestException e) { Console.WriteLine($"Error: {e.Message}"); } }}
{ "action": "post", "status": "error", "code": 144, "message": "Some profiles not found. Please verify the Profile Keys."}
احذف User Profile الذي تملكه. Profile Key في معامل الرأس هو User Profile الذي سيُحذف.
حذف User Profile يزيل الملف الشخصي وجميع المنشورات المرتبطة به بشكل دائم — هذا الإجراء
لا يمكن التراجع عنه أو استعادته. يمكنك حذف حتى 8 ملفات مستخدم في الثانية، لذا يُرجى
توزيع استدعاءات API عند إجراء عمليات حذف بالجملة للبقاء ضمن حدود المعدل.
تُحتسب كل فترة فوترة شهرية على أساس أعلى عدد من User Profiles بلغته في أي يوم واحد خلال تلك
الفترة، ولا تقل أبدًا عن الحد الأدنى المشمول في خطتك — لذا فإن حذف User Profiles وأنت عند هذا الحد
الأدنى لا يخفض الرسوم. وهذا الرقم الأعلى لا يتحرك إلا صعودًا: فحذف User Profile يمنع الأيام
التالية من رفعه، لكنه لا يخفض رقمًا بلغته الفترة بالفعل، ومن ثم يظهر التوفير في دورة الفوترة
التالية متى كان أعلى رقم قد تحقق. ولا ينطبق ذلك على خطة Launch، فسعرها ثابت، ولا على الاتفاقيات
المخصصة واتفاقيات Enterprise، إذ تسري شروطها الخاصة. ولعرض الأعداد اليومية لـ User Profiles لديك،
استدعِ الحصول على ملفات تعريف المستخدمين مع ضبط actionLog على
true.
<?php$url = 'https://api.ayrshare.com/api/profiles';$apiKey = 'API_KEY'; // Replace with your actual API key$profileKey = 'PROFILE_KEY'; // Replace with your actual Profile key$curl = curl_init();curl_setopt_array($curl, [ CURLOPT_URL => $url, CURLOPT_RETURNTRANSFER => true, CURLOPT_CUSTOMREQUEST => 'DELETE', CURLOPT_HTTPHEADER => [ 'Content-Type: application/json', 'Authorization: Bearer ' . $apiKey, 'Profile-Key: ' . $profileKey ],]);$response = curl_exec($curl);if (curl_errno($curl)) { echo 'Error:' . curl_error($curl);} else { echo json_encode(json_decode($response), JSON_PRETTY_PRINT);}curl_close($curl);
using System;using System.Net.Http;using System.Threading.Tasks;class Program{ static async Task Main(string[] args) { using var client = new HttpClient(); var requestUri = "https://api.ayrshare.com/api/profiles"; var bearerToken = "Bearer API_KEY"; var profileKey = "PROFILE_KEY"; using var request = new HttpRequestMessage(HttpMethod.Delete, requestUri); request.Headers.Add("Authorization", bearerToken); request.Headers.Add("Profile-Key", profileKey); try { using var response = await client.SendAsync(request); response.EnsureSuccessStatusCode(); var responseBody = await response.Content.ReadAsStringAsync(); Console.WriteLine(responseBody); } catch (HttpRequestException e) { Console.WriteLine($"Error: {e.Message}"); } }}