કન્ટેન્ટ પર જાઓ
API key મેળવો
પશ્ચિમીસેન્ડબોક્સ

Western Composite Chart Image API

"operation": "western-composite-image"

સંયુક્ત (composite) સંબંધ ચાર્ટ એમ્બેડ કરો.

POST/v1/astrology/calculate
  • દર મહિને 500 મફત કૉલ
  • કાર્ડની જરૂર નથી
  • નિષ્ફળ ગણતરીઓ મફત છે

રિક્વેસ્ટ

ગણતરી કરો

તમારી API key સાથે તમારા સર્વર પરથી "operation": "western-composite-image" ને POST /v1/astrology/calculate પર મોકલો.

આ નમૂના પેરામીટર parameters હેઠળ મોકલો: person_a, person_b. જ્યાં લાગુ પડે ત્યાં રિક્વેસ્ટ કૃત્રિમ ઇનપુટ વાપરે છે. જરૂરી હોય ત્યાં નમૂનામાં વૈકલ્પિક સેટિંગ્સ સામેલ છે.

request.sh
curl -X POST "$MANTRILO_API_URL/v1/astrology/calculate" \
  -H "Authorization: Bearer $MANTRILO_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"parameters":{"person_a":{"year":1990,"month":5,"day":15,"city":"London"},"person_b":{"year":1992,"month":8,"day":6,"city":"Paris"}},"operation":"western-composite-image"}'

રિસ્પોન્સ

બદલામાં શું મળે છે.

દૃષ્ટાંતરૂપ રિસ્પોન્સનો અંશ

/v1/astrology/calculate200 OK
{
  "data": {
    "operation": "western-composite-image",
    "contentType": "image/png",
    "imageBase64": "<PNG bytes encoded as base64>"
  },
  "calculated": true
}

પશ્ચિમી

પરિણામ વડે બનાવો

ચાર્ટને data URI તરીકે રેન્ડર કરવા data.contentType અને data.imageBase64 વાપરો.

એક સફળ કૉલ એક કન્ટેન્ટ રિક્વેસ્ટ વાપરે છે. સેન્ડબોક્સ અને લાઇવ રિક્વેસ્ટના વપરાશના કુલ આંકડા અલગ હોય છે. નિષ્ફળ ગણતરીઓની રિક્વેસ્ટ પાછી મળે છે.