Aiuto e supporto solidale

Wiki di Orwell Fun Community

Strumenti Utente

Strumenti Sito


faq

Differenze

Queste sono le differenze tra la revisione selezionata e la versione attuale della pagina.

Link a questa pagina di confronto

Entrambe le parti precedenti la revisioneRevisione precedente
faq [2022/05/07 09:09] – eliminata tassomanfaq [2024/02/05 22:17] (versione attuale) – creata smith
Linea 1: Linea 1:
 +====== Domande poste di frequente ======
 +Segue una lista di soluzioni a problemi sporadici.
  
 +===== Non riesco più a vedere la pagina dei post programmati =====
 +R: potrebbe essersi rotta. Occorre [[https://orwell.fun/api/v1/scheduled_statuses|recuperare dalle API l'elenco dei post che sono stati programmati]]
 +
 +Scegliere l'ID dell'ultimo post inserito (probabilmente quello con numero più alto) ed eliminarlo usando il seguente codice da inserire nella console del browser
 +
 +<code javascript>
 +
 +(() => {
 +  // Replace 'YOUR_NUMBER' with the actual number you want to use
 +  const scheduledStatusId = 915;
 +  const url = `https://orwell.fun/api/v1/scheduled_statuses/${scheduledStatusId}`;
 +
 +  async function deleteScheduledStatus() {
 +    try {
 +      const response = await fetch(url, {
 +        method: 'DELETE',
 +        headers: {
 +          'Content-Type': 'application/json',
 +          // You may need to include additional headers if required by the API
 +          // For example, if you have an authentication token:
 +          // 'Authorization': 'Bearer YOUR_ACCESS_TOKEN',
 +        },
 +      });
 +
 +      if (!response.ok) {
 +        throw new Error(`Failed to delete scheduled status. Status: ${response.status}`);
 +      }
 +
 +      const result = await response.json();
 +      console.log('Scheduled status deleted successfully:', result);
 +    } catch (error) {
 +      console.error('Error deleting scheduled status:', error.message);
 +    }
 +  }
 +
 +  // Call the function to initiate the DELETE request
 +  deleteScheduledStatus();
 +})();
 +
 +</code>
faq.1651914542.txt.gz · Ultima modifica: 2022/05/07 09:09 da tassoman