AttendBeacon
Ouvrir l’espace de travail

Référence de l’API

Share kit

The share kit's leaderboard.

Get the share kit leaderboard

GET/events/{eventId}/share-kit/leaderboard

Gets who spread the word best: speakers and sponsors by name with the clicks, orders and tickets their link or code brought, and attendees together.

Autorisations
sharekit:read
Module
sharekit Refusée avec moduleOff tant que l’organisateur de l’événement l’a désactivé.

    Paramètres

    chemin

    • eventIdstring (uuid)obligatoire

      The event's id.

    requête

    • limitinteger (int32)

      How many rows, up to 100.

      Par défaut : 25

    Réponses

    • 200 The leaderboard. ShareLeaderboard
      Champs
      • eventIdstring (uuid)

        The event's id.

      • currencystring

        ISO 4217.

      • dataobject[]

        The rows, most tickets first.

        Afficher les champs
        • rankinteger (int32)

          Its place.

        • kindstring

          Speaker or sponsor.

        • namestring

          Their name.

        • codestring ou null

          Their personal discount code.

        • clicksinteger (int32)

          Clicks on their link.

        • ordersByLinkinteger (int32)

          Orders through their link.

        • ordersByCodeinteger (int32)

          Orders with their code.

        • ordersinteger (int32)

          Orders in all.

        • ticketsinteger (int32)

          Tickets in them.

        • revenuenumber

          What they came to. With the currency's own decimals: 147.00 in EUR, 147 in JPY, 147.000 in KWD.

        • postsinteger (int32)

          Posts made from the kit.

      • attendeesobject

        Every attendee who shared, together.

        Afficher les champs
        • ambassadorsinteger (int32)

          How many shared.

        • clicksinteger (int32)

          Clicks.

        • ordersinteger (int32)

          Orders.

        • ticketsinteger (int32)

          Tickets.

        • revenuenumber

          Revenue. With the currency's own decimals: 147.00 in EUR, 147 in JPY, 147.000 in KWD.

    • 401 invalidKey, keyExpired, keyRevoked.
    • 403 missingScope.
    • 404 eventNotFound.
    • 409 moduleOff.
    • 429 rateLimited.

    Refus

    invalidKey keyExpired keyRevoked rateLimited missingScope moduleOff eventNotFound

    Requête

    curl "https://attendbeacon.com/api/v1/events/b3ac0000-0000-4000-8000-000000000001/share-kit/leaderboard?limit=2" \
      -H "Authorization: Bearer $ATTENDBEACON_KEY"

    200 Exemple de réponse

    JSON
    {
      "eventId": "b3ac0000-0000-4000-8000-000000000001",
      "currency": "EUR",
      "data": [
        {
          "rank": 1,
          "kind": "speaker",
          "name": "Ada Verhoeven",
          "code": "ADA150",
          "clicks": 447,
          "ordersByLink": 8,
          "ordersByCode": 0,
          "orders": 8,
          "tickets": 8,
          "revenue": 1580,
          "posts": 1
        },
        {
          "rank": 2,
          "kind": "sponsor",
          "name": "Northwind Cloud",
          "code": "NORTHWIND150",
          "clicks": 230,
          "ordersByLink": 5,
          "ordersByCode": 0,
          "orders": 5,
          "tickets": 5,
          "revenue": 395,
          "posts": 0
        }
      ],
      "attendees": {
        "ambassadors": 3,
        "clicks": 21,
        "orders": 0,
        "tickets": 0,
        "revenue": 0
      }
    }
    401 invalidKey, keyExpired, keyRevoked.
    JSON
    {
      "type": "https://attendbeacon.com/developers/errors#invalidKey",
      "title": "No working API key",
      "status": 401,
      "detail": "No key was sent, or it is not one this platform made. Send it as Authorization: Bearer abk_... or in X-Api-Key.",
      "instance": "/api/v1/events/b3ac0000-0000-4000-8000-000000000001/share-kit/leaderboard",
      "code": "invalidKey",
      "traceId": "00-4bf92f3577b34da6a3ce929d0e0e4736-00f067aa0ba902b7-01",
      "error": "No key was sent, or it is not one this platform made. Send it as Authorization: Bearer abk_... or in X-Api-Key."
    }

    Les guides et ce site sont dans votre langue. Les descriptions propres à la référence de l’API restent en anglais, la langue de l’API elle-même.