అధికారిక Agilis Advertising SDKలు

ఏడు భాషల కోసం లైబ్రరీలు. ప్రతి ఒక్కటి అన్ని ఎండ్‌పాయింట్‌లను కవర్ చేస్తుంది, మీ కీని AGILIS_API_KEY నుండి చదువుతుంది, సురక్షితంగా మళ్లీ ప్రయత్నిస్తుంది, ఏ రిటర్న్ కోడ్ వచ్చినా ఎర్రర్‌ను రైజ్ చేస్తుంది, మరియు వెబ్‌హుక్ సంతకాలను ధృవీకరిస్తుంది.

ఏడు SDKలు
భాషప్యాకేజీఇన్‌స్టాల్ ఆదేశంకనీస అవసరంసోర్స్ మరియు మార్పుల చరిత్ర
Node.js and TypeScript @agilisdating/ads (npm) npm install @agilisdating/ads Node.js 20 or later సోర్స్ · మార్పుల చరిత్ర
Python agilis-ads (PyPI) pip install agilis-ads Python 3.10 or later సోర్స్ · మార్పుల చరిత్ర
PHP agilisdating/agilis-ads (Packagist) composer require agilisdating/agilis-ads guzzlehttp/guzzle PHP 8.2 or later, with any PSR-18 HTTP client (Guzzle suggested) సోర్స్ · మార్పుల చరిత్ర
.NET (C#) Agilis.Ads (NuGet) dotnet add package Agilis.Ads .NET 8 or later, or .NET Standard 2.0; usable from Visual Basic too సోర్స్ · మార్పుల చరిత్ర
Java dating.agilis:agilis-ads (Maven Central) implementation("dating.agilis:agilis-ads:0.1.0")
Gradle (Kotlin). With Maven: groupId dating.agilis, artifactId agilis-ads, version 0.1.0.
Java 17 or later సోర్స్ · మార్పుల చరిత్ర
Go github.com/agilisdating/agilis-ads-go (pkg.go.dev) go get github.com/agilisdating/agilis-ads-go Go 1.22 or later సోర్స్ · మార్పుల చరిత్ర
Ruby agilis-ads (RubyGems) gem install agilis-ads Ruby 3.2 or later సోర్స్ · మార్పుల చరిత్ర

మీ మొదటి అభ్యర్థన

Test కీతో Offer వర్గాలను జాబితా చేయండి. ప్రతి ఉదాహరణ API రిఫరెన్స్‌ ఉన్న మూలం నుండే వస్తుంది.

Node.js and TypeScript

import { Agilis } from '@agilisdating/ads';

const client = new Agilis(); // reads AGILIS_API_KEY

const result = await client.categories.list();
console.log(result.categories?.length);

Python

from agilis_ads import Agilis

client = Agilis()  # reads AGILIS_API_KEY

result = client.categories.list()
print(len(result["categories"]))

PHP

<?php

require 'vendor/autoload.php';

use Agilis\Ads\AgilisClient;

$agilis = new AgilisClient(); // reads AGILIS_API_KEY

$result = $agilis->categories->list();
echo count($result['categories']), "\n";

.NET (C#)

using Agilis.Ads;

using var client = new AgilisClient(); // reads AGILIS_API_KEY

var result = await client.Categories.ListAsync();
Console.WriteLine(result.Categories.Count);

Java

import dating.agilis.ads.AgilisClient;

AgilisClient client = AgilisClient.builder().build(); // reads AGILIS_API_KEY

var result = client.categories().list();
System.out.println(result.getCategories().size());

Go

package main

import (
	"context"
	"fmt"
	"log"

	agilisads "github.com/agilisdating/agilis-ads-go"
)

func main() {
	client := agilisads.NewClient("") // reads AGILIS_API_KEY
	ctx := context.Background()

	result, err := client.Categories.List(ctx)
	if err != nil {
		log.Fatal(err)
	}
	fmt.Println(len(result.Categories))
}

Ruby

require "agilis_ads"

client = AgilisAds::Client.new # reads AGILIS_API_KEY

result = client.categories.list
puts result.categories.length

వెబ్‌హుక్‌ను ధృవీకరించండి

ప్రతి SDK ఒకే కాల్‌తో Agilis-Signature హెడర్‌ను మీ ఎండ్‌పాయింట్ రహస్యంతో సరిచూస్తుంది. ఎలాంటి పార్సింగ్ చేయకముందే, అసలు (raw) అభ్యర్థన బాడీని ఉపయోగించండి.

Node.js and TypeScript

import { webhooks } from '@agilisdating/ads';

const event = webhooks.constructEvent(rawBody, signatureHeader, secret);

Python

from agilis_ads import construct_event

event = construct_event(raw_body, signature_header, secret)

PHP

use Agilis\Ads\Webhooks;

$event = (new Webhooks())->constructEvent($rawBody, $signatureHeader, $secret);

.NET (C#)

using Agilis.Ads;

var webhookEvent = Webhooks.ConstructEvent(rawBody, signatureHeader, secret);

Java

import dating.agilis.ads.Webhooks;

var event = Webhooks.constructEvent(rawBody, signatureHeader, secret);

Go

import agilisads "github.com/agilisdating/agilis-ads-go"

event, err := agilisads.ConstructEvent(payload, signatureHeader, secret)

Ruby

require "agilis_ads"

event = AgilisAds::Webhook.construct_event(raw_body, signature_header, secret)

సమస్యల పరిష్కారం

  • కీ ఆమోదించబడలేదు: కీని మరియు దాని మోడ్‌ను తనిఖీ చేయండి; Test కీలు Test మోడ్‌లో మాత్రమే పనిచేస్తాయి.
  • HTTP 200తో లోపం: SDK దాని రిటర్న్ కోడ్‌తో పాటు దాన్ని ఎక్సెప్షన్‌గా చూపిస్తుంది (ఉదాహరణకు E3, తగినంత నిల్వ లేదు).
  • చాలా ఎక్కువ అభ్యర్థనలు: SDK వేచి ఉండి మళ్లీ ప్రయత్నిస్తుంది; ఒక్కో కీకి నిమిషానికి 60 అభ్యర్థనల లోపే ఉంచండి.
  • కంపెనీ ప్రాక్సీ వెనుక ఉంటే: కొన్ని నెట్‌వర్క్‌లు సురక్షిత కనెక్షన్‌లను తనిఖీ చేస్తాయి; ads.agilis.dating ను అనుమతించండి.
  • చిత్రం తిరస్కరించబడింది: చిత్రాలను ప్రచురించే ముందు తనిఖీ చేస్తారు; వేరే చిత్రాన్ని ఎంచుకోండి.

డౌన్‌లోడ్ చేయండి

Agilis యాప్‌ను డౌన్‌లోడ్ చేసుకోవడానికి QR కోడ్
App Store నుండి డౌన్‌లోడ్ చేసుకోండి దీన్ని Google Playలో పొందండి
రెండు ఫోన్‌లలో Agilis యాప్ చూపిస్తోంది: ఒక సభ్యుని ప్రొఫైల్ కార్డ్ మరియు Agilis లోగో

సామాజిక మాధ్యమాలు

Agilis Facebook పేజీ Agilis Instagram పేజీ Agilis LinkedIn పేజీ Agilis X పేజీ Agilis TikTok పేజీ

మీ బ్రౌజింగ్ అనుభవాన్ని మెరుగుపరచడానికి, వ్యక్తిగతీకరించిన ప్రకటనలు లేదా కంటెంట్‌ను అందించడానికి, మరియు మా ట్రాఫిక్‌ను విశ్లేషించడానికి మేము కుకీలను ఉపయోగిస్తాము. (కుకీ విధానం చూడండి)