Projects

Checking which project you have permission to access


Once you have a valid JWT you can check which projects you have permission to access.

This entry-point will provide information about the projects you can access and which social media profiles are provided by each of them.

Sample Request

curl -H"X-Auth-Token:${TOKEN}" "https://api.quantum.socialmetrix.com/account/${ACCOUNT_ID}/projects"

Sample Response

You need the _id and source.id values to be able to do the next request

[
  {
    "name": "Roger's Project",
    "brands": [
      {
        "source_type": "TWITTER",
        "id": "TWITTER_211977538",
        "name": "Personal Argentina",
        "icon": "https://pbs.twimg.com/profile_images/466321025303474176/p-dezEO2_normal.jpeg",
        "source": {
          "kind": "TWITTER",
          "id": "211977538",
          "url": "http://www.twitter.com/PersonalAr"
        },
        "status": "1",
        "next_fetch": 0,
        "crawling_data": {
          "disabled": false,
          "initial_crawling_date": 1414171341
        },
        "screen_name": "PersonalAr"
      },
      {
        "source_type": "FACEBOOK",
        "id": "FACEBOOK_123576404337836",
        "name": "Personal Argentina",
        "icon": "https://fbcdn-profile-a.akamaihd.net/hprofile-ak-xfp1/v/t1.0-1/c12.12.155.155/s50x50/432240_384792098216264_266670013_n.jpg?oh=f4b89138bc217ac3efbe12302bc1cd12&oe=556C5973&__gda__=1428955493_edf4f3a4c24acc0598332092c06ac478",
        "source": {
          "kind": "FACEBOOK",
          "id": "123576404337836",
          "url": "https://www.facebook.com/personalargentina"
        },
        "username": "personalargentina",
        "status": "1",
        "next_fetch": 0,
        "crawling_data": {
          "disabled": false,
          "initial_crawling_date": 1400513839
        },
        "has_parent": false
      }
    ],
    "fanpages": {
      "empty": false
    },
    "twitterProfiles": {
      "empty": false
    },
    "_id": 1,
    "created_at": 1420830355,
    "account_id": 724,
    "is_demo": false
  },
  {
    "name": "Lu's Project",
    "brands": [
      {
        "source_type": "FACEBOOK",
        "id": "FACEBOOK_133477810025656",
        "name": "Scarlett Cakes - Delivery de Tortas - Palermo Soho",
        "icon": "https://fbcdn-profile-a.akamaihd.net/hprofile-ak-xpf1/v/t1.0-1/p50x50/10152447_751322324907865_5070703271083229997_n.png?oh=a6c6c43dbf66f6b87467bd1ed04e6c0f&oe=55679592&__gda__=1432766009_5f00ecb2c50acd5f502246889451c15c",
        "source": {
          "kind": "FACEBOOK",
          "id": "133477810025656",
          "url": "https://www.facebook.com/scarlettsoho"
        },
        "username": "scarlettsoho",
        "status": "1",
        "next_fetch": 0,
        "crawling_data": {
          "disabled": false,
          "initial_crawling_date": 1422368599
        },
        "has_parent": false
      },
      {
        "source_type": "FACEBOOK",
        "id": "FACEBOOK_117921318301439",
        "name": "Pepsi",
        "icon": "https://fbcdn-profile-a.akamaihd.net/hprofile-ak-xap1/v/t1.0-1/p50x50/14820_630080180418881_4423726537776616697_n.png?oh=cf9d11272447a86742264a25fad422d4&oe=555D19C0&__gda__=1431700241_f66ca4dacf42c4948a6817b86cd46d5d",
        "source": {
          "kind": "FACEBOOK",
          "id": "117921318301439",
          "url": "https://www.facebook.com/pepsiargentina"
        },
        "username": "pepsiargentina",
        "status": "1",
        "next_fetch": 0,
        "crawling_data": {
          "disabled": false,
          "initial_crawling_date": 1400515285
        },
        "has_parent": true
      }
    ],
    "fanpages": {
      "empty": false
    },
    "twitterProfiles": {
      "empty": false
    },
    "_id": 6,
    "created_at": 1421934306,
    "account_id": 724,
    "is_demo": false
  }
]

The information that you need to save is:

project_id = 6
fanpage_id = "117921318301439" // www.facebook.com/pepsiargentina