Perfil de WhatsApp

Gestiona tu perfil de WhatsApp: nombre, estado (about) y foto de perfil.

Obtener perfil

http
GET /api/{session}/profile
jsonRespuesta
{
  "id": "[email protected]",
  "name": "Mi Nombre",
  "picture": "https://pps.whatsapp.net/v/t/123.jpg"
}

Cambiar nombre

http
PUT /api/{session}/profile/name
jsonCuerpo
{ "name": "Nuevo Nombre" }
jsonRespuesta
{ "success": true }

Cambiar estado (About)

http
PUT /api/{session}/profile/status
jsonCuerpo
{ "status": "Disponible por WhatsApp API" }
jsonRespuesta
{ "success": true }

Cambiar foto de perfil

http
PUT /api/{session}/profile/picture

Con URL:

jsonCuerpo
{
  "file": {
    "url": "https://ejemplo.com/foto.jpg"
  }
}

O con datos en base64:

jsonCuerpo
{
  "file": {
    "data": "BASE64_DE_LA_IMAGEN"
  }
}
jsonRespuesta
{ "success": true }

Eliminar foto de perfil

http
DELETE /api/{session}/profile/picture
jsonRespuesta
{ "success": true }