Zum Inhalt springen
aYOUne
← Marketing API

ReviewSources

Singular: ReviewSource — Base-URL: https://marketing-api.ayoune.app — Zugriff: CRUD — Maschinenlesbare Beschreibung (JSON · YAML)

Jetzt ausprobieren beta

Requests werden über den consumer-app Proxy an *.ayoune.app weitergeleitet. Tokens bleiben im Browser und werden pro Call mitgesendet.

Beispiel-Response (aufgezeichnet) Beispiel

Eine echte, zuvor aufgezeichnete GET /:id-Antwort dieses Endpunkts — nicht der Live-Call oben. Sensible Felder sind maskiert.

{
  "payload": {
    "_id": "6ac5258c8a67e3fdb02c3736",
    "_businessLocation": "6ac4c55fed1f2cb017939eb5",
    "platform": "google",
    "externalId": "ChIJVVVFp9mOnUcR3QpVVhtsIC8",
    "url": "https://www.google.com/maps/place/?q=place_id:ChIJVVVFp9mOnUcR3QpVVhtsIC8",
    "enabled": true,
    "shares": [],
    "createdAt": "2026-10-06T16:45:00.406Z",
    "updatedAt": "2026-10-09T23:30:00.447Z",
    "cursor": {
      "lastExternalId": "places/ChIJVVVFp9mOnUcR3QpVVhtsIC8/reviews/ChdDSUhNMG9nS0VJQ0FnSURfbktqZTFnRRAB",
      "lastReviewAt": "2025-01-22T10:34:21.255Z"
    },
    "lastSyncAt": "2026-10-09T23:30:00.177Z",
    "lastSyncStatus": "partial",
    "stats": {
      "count": 2,
      "average": 5,
      "lastReviewAt": "2025-01-22T10:34:21.255Z"
    },
    "modifiedBy": "5a76d07e2d8b3270ff6df587"
  },
  "meta": {
    "links": [
      {
        "rel": "self",
        "href": "https://marketing-api.ayoune.app/reviewsources/6ac5258c8a67e3fdb02c3736",
        "method": "get",
        "title": "GET",
        "types": [
          "application/json",
          "application/yaml",
          "text/csv"
        ]
      },
      {
        "rel": "BusinessLocations",
        "title": "MODEL_BUSINESSLOCATION",
        "href": "https://api.ayoune.app/config/businesslocations/6ac4c55fed1f2cb017939eb5",
        "method": "get",
        "types": [
          "application/json",
          "application/yaml",
          "text/csv"
        ],
        "right": "config.businesslocations"
      }
    ],
    "relations": [
      {
        "rel": "BusinessLocations",
        "title": "MODEL_BUSINESSLOCATION",
        "href": "https://api.ayoune.app/config/businesslocations",
        "method": "get",
        "types": [
          "application/json",
          "application/yaml",
          "text/csv"
        ],
        "right": "config.businesslocations"
      },
      {
        "rel": "Credentials",
        "title": "MODEL_CREDENTIAL",
        "href": "https://api.ayoune.app/config/credentials",
        "method": "get",
        "types": [
          "application/json",
          "application/yaml",
          "text/csv"
        ],
        "right": "config.credentials"
      }
    ],
    "debugId": "6ac9bbb8d942c8cd7c84bf7f",
    "errors": [],
    "actions": [
      {
        "rel": "self",
        "action": "COPY",
        "title": "MODEL_REVIEWSOURCE",
        "href": "https://api.ayoune.app/marketing/reviewsources/6ac5258c8a67e3fdb02c3736/copy",
        "method": "post",
        "types": [
          "application/json",
          "application/yaml",
          "text/csv"
        ]
      },
      {
        "rel": "self",
        "action": "DELETE",
        "title": "MODEL_REVIEWSOURCE",
        "href": "https://api.ayoune.app/marketing/reviewsources/6ac5258c8a67e3fdb02c3736",
        "method": "delete",
        "types": [
          "application/json",
          "application/yaml",
          "text/csv"
        ]
      }
    ],
    "version": {
      "host": "2026.38.0",
      "core": "2026.368.1"
    },
    "rateLimit": {
      "limit": "10000",
      "remaining": "8792",
      "reset": "1791608900",
      "resetDate": "Sat Oct 10 2026"
    },
    "responseTime": 1095.459576,
    "code": 200,
    "status": "success",
    "error": false
  }
}

Endpunkte

MethodePathBeschreibungRight
GET /reviewsources Liste mit Filtern/Paginierung marketing.reviewsources.view
GET /reviewsources/:id Einzelner Datensatz marketing.reviewsources.view
POST /reviewsources Neuen Datensatz erstellen marketing.reviewsources.new
PUT /reviewsources Datensatz aktualisieren marketing.reviewsources.edit
DELETE /reviewsources/:id Datensatz löschen marketing.reviewsources.delete

SDK

import { aYOUne } from '@tolinax/ayoune';
const ay = new aYOUne('pat_your_token');

// Alle abrufen
const list = await ay.marketing.reviewSources.find().limit(10).exec();

// Einzelnen Datensatz
const one = await ay.marketing.reviewSources.findById('OBJECT_ID').exec();

// Erstellen
const created = await ay.marketing.reviewSources.create({ name: 'Foo' });

Weiterführend