Diagnostic


Receiving diagnistic report for selected date range


Request

GET http://api.truesocialmetrics.com/gamma/diagnostic/f84b188cdb114f7f67428c5c54ba5660?from=1392029313&to=1392634103&source=twitter&api_user=x@x.com&api_key=2999cccf4896592ebafc8cecdee529
or the same with CURL
curl http://api.truesocialmetrics.com/gamma/diagnostic/f84b188cdb114f7f67428c5c54ba5660?from=1392029313&to=1392634103&source=twitter&$TT_AUTH
f84b188cdb114f7f67428c5c54ba5660 - account id, from Account list
twitter - unique source id, from Source list
from=1392029313 to=1392634103 - daterange for analyze in unix timestamp format (notice: from < to).

Insted of using from:to for daterange you can use string representation from_str:to_str
1. YYYYMMDD format e.q. "20140730"
2. Mocks - "today", "yesterday", "monday", "april"
3. Shift pointers - "last monday", "last friday", "-1 month", "-2 weeks", "-4 days"

GET http://api.truesocialmetrics.com/gamma/diagnostic/f84b188cdb114f7f67428c5c54ba5660?from_str=-1%20month&to_str=yesterday&source=twitter&api_user=x@x.com&api_key=2999cccf4896592ebafc8cecdee529

Response

Data is not ready yet, you can re-call api in 2-5 seconds.
{
    "status": "in process",
    "id": "f84b188cdb114f7f67428c5c54ba5660",
    "response": []
}

Analyzing is done.
{
    "status": "ok",
    "id": "f84b188cdb114f7f67428c5c54ba5660",
    "response": [
        {
            "id": "284353004092653568",
            "text": "Winning Strategy",
            "replies": 1,
            "reshares": 5,
            "favorites": 2,
            "date": 1356630013,
            "link": "https://twitter.com/techstars/status/284353004092653568",
            "followers": 65123,
            "type": "text"
        }
    ]
}