Timeline

The end point /timeline-service/timeline provides method for receiving chunk of timeline for user

Get timeline feed

GET /timeline-service/timeline
Parameters
Name Type Description
authenticateit_identity_ticket header Required: Session's ticket
id string Chunk id
reviews boolean Reviews records filter
:empty: - returns main chunk
Example Response
{
  "id": "4eb1752fdd36a3415bce036478002b49",
  "records": [
        {
            "review": {
                "counters": {
                    "dislikes": 0,
                    "likes": 0
                },
                "data": {
                    "images": [
                        {
                            "url": "https://dev-cdn.shping.com/2018/12/18/d705a944-5091-4fda-8eac-8277e51a05ca"
                        },
                        {
                            "url": "https://dev-cdn.shping.com/2018/12/18/659f0cf7-9290-4d02-b293-1261b029c311"
                        }
                    ],
                    "rate": 5,
                    "text": "Great"
                },
                "id": "urn:authenticateit:review_doc:185675438043477",
                "owner": {
                    "first_name": "Ivan1",
                    "last_name": "vasilev1",
                    "level": "silver",
                    "photo": null
                },
                "user_like_option" : "none",
                "product": {
                    "name": "CLIP STUDIO",
                    "id": "04680259422516"
                }
            },
            "scan_id": "9778817c-3e7c-4516-95c3-3b31d9a9d553",
            "ts": "2018-12-18T07:40:40Z",
            "type": "review"
       },
       {
           "claim_id": "8c8c34cb-c03a-4905-969e-ce7a765c0899",
           "coins": "5000000000000000000",
           "scan_id": "c5460863-e15b-40c7-abf1-8f1b21214f4c",
           "status": "approved",
           "text": "Earned from <b>System campaign</b> per scan and view info of <b>Bellagio Wine Bianco 750ml</b>.",
           "ts": "2018-03-15T13:03:05Z",
           "type": "coins"
       },
       {
           "coins": "5000000000000000000",
           "earned_coins": "5000000000000000000",
           "image_url": "https://cdn.shping.com/2018/1/28/a759926f-0826-4d90-9d62-61aa4d202d56.png",
           "max_coins": "5000000000000000000",
           "product_name": "Bellagio Wine Bianco 750ml",
           "scan_id": "c5460863-e15b-40c7-abf1-8f1b21214f4c",
           "text": "Bellagio Wine Bianco 750ml",
           "ts": "2018-03-15T13:01:42Z",
           "type": "scan"
       },
       {
           "rule_id": "scan_interval",
           "scan_id": "c5460863-e15b-40c7-abf1-8f1b21214f4c",
           "campaign_id": "urn:authenticateit:campaign:006501147548377",
           "is_blocked_notification": true,
           "text": "You have been temporarily blocked from earning coins for 1 hour",
           "ts": "2018-03-15T12:01:42Z",
           "type": "notification"
       },
       {
           "text": "65 65 poked you: \"Hey, you are my Shping Buddy. Please scan more so we could faster get our rewards!\"",
           "ts": "2018-01-18T22:07:55Z",
           "type": "notification"
       }
  ],
  "next": "4eb1752fdd36a3415bce0364780032aa"
}

Tags

The end point /tags provides method for counting user's profiles by tags

Count user profiles by tag

Requests Description
{“tags”:{“countries”:[“036”, “040”],“languages”:[“ru”, “en”]}} Count of users whose “country” field contains “036” or “040” and “language” field contains “ru” or “en”
{“tags”:{}} Count of users
{“tags”:{“countries”:“036”}} Count of users whose “country” field contains “036”
{“tags”:{“languages”:“ru”}} Count of users whose “language” field contains “ru”
POST /timeline-service/tags
Parameters
Name Type Description
authenticateit_identity_ticket header Required: Session's ticket
Example Response
{
    “count”:1
}

results matching ""

    No results matching ""