ਸਮੱਗਰੀ 'ਤੇ ਜਾਓ
API key ਲਓ
ਮੂਲਸੈਂਡਬਾਕਸ

Guna Milan API

"operation": "match"

ਦੋ ਜਨਮ ਪ੍ਰੋਫ਼ਾਈਲਾਂ ਦੀ ਅਨੁਕੂਲਤਾ ਵਿਊ ਵਿੱਚ ਤੁਲਨਾ ਕਰੋ।

POST/v1/astrology/calculate
  • ਹਰ ਮਹੀਨੇ 500 ਮੁਫ਼ਤ ਕਾਲਾਂ
  • ਕਾਰਡ ਦੀ ਲੋੜ ਨਹੀਂ
  • ਅਸਫਲ ਗਣਨਾਵਾਂ ਮੁਫ਼ਤ ਹਨ

ਬੇਨਤੀ

ਗਣਨਾ ਕਰੋ

ਆਪਣੀ API key ਨਾਲ ਆਪਣੇ ਸਰਵਰ ਤੋਂ "operation": "match" ਨੂੰ POST /v1/astrology/calculate 'ਤੇ ਭੇਜੋ।

person1 ਅਤੇ person2 ਦਿਓ। ਹਰ ਇੱਕ ਨੂੰ ਸਕਿੰਟ 00 ਵਾਲਾ ਅਤੇ IANA ਟਾਈਮਜ਼ੋਨ ਨਾਲ ਮੇਲ ਖਾਂਦੇ ਆਫ਼ਸੈੱਟ ਵਾਲਾ ISO 8601 datetime, ਨਾਲ ਹੀ ਦਸ਼ਮਲਵ ਡਿਗਰੀਆਂ ਵਿੱਚ ਅਕਸ਼ਾਂਸ਼ ਅਤੇ ਰੇਖਾਂਸ਼ ਚਾਹੀਦੇ ਹਨ।

request.sh
curl -X POST "$MANTRILO_API_URL/v1/astrology/calculate" \
  -H "Authorization: Bearer $MANTRILO_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"person1":{"datetime":"1995-06-20T12:30:00+05:30","latitude":28.6139,"longitude":77.209,"timezone":"Asia/Kolkata"},"person2":{"datetime":"1996-04-25T09:00:00+05:30","latitude":28.6139,"longitude":77.209,"timezone":"Asia/Kolkata"},"operation":"match"}'

ਜਵਾਬ

ਬਦਲੇ ਵਿੱਚ ਕੀ ਮਿਲਦਾ ਹੈ।

ਨਮੂਨਾ ਜਵਾਬ ਦਾ ਅੰਸ਼

/v1/astrology/calculate200 OK
{
  "data": {
    "operation": "match",
    "score": 25,
    "maxScore": 36,
    "factors": []
  },
  "calculated": true
}

ਮੂਲ

ਨਤੀਜੇ ਨਾਲ ਬਣਾਓ

data.maxScore ਵਿੱਚੋਂ data.score ਦਿਖਾਓ, ਫਿਰ data.factors।

ਇੱਕ ਸਫਲ ਕਾਲ ਇੱਕ ਸਮੱਗਰੀ ਬੇਨਤੀ ਵਰਤਦੀ ਹੈ। ਸੈਂਡਬਾਕਸ ਅਤੇ ਲਾਈਵ ਬੇਨਤੀਆਂ ਦੀ ਵਰਤੋਂ ਵੱਖਰੀ ਗਿਣੀ ਜਾਂਦੀ ਹੈ। ਅਸਫਲ ਗਣਨਾਵਾਂ ਵਾਪਸ ਕਰ ਦਿੱਤੀਆਂ ਜਾਂਦੀਆਂ ਹਨ।