Get Status User is over daily status update limit  twitter code 185 (REST)

Version 1
    This document was generated from CDN thread

    Created by: esraldi darmawanto on 19-12-2013 10:32:55 AM
    Please help me, How I can get status User is over daily status update limit  twitter code 185  Via API? I’vh read API document page 95, does this do?

    Subject: RE: Get Status User is over daily status update limit  twitter code 185 (RE
    Replied by: Mark Rzasa on 19-12-2013 04:32:42 PM
    Hi Esraldi,

    Are you receiving a status code of 185 from Twitter or do you want to know how a status code is returned using the SocialMiner Twitter reply API?

    If you are receiving a 185 from Twitter, it means you have exceeded your posting allowance. This page has some good information around codes:

    https://dev.twitter.com/docs/error-codes-responses

    Had you been posting a lot of status updates when you received the error? Further information regarding the error can be found in the ccpapi logs. These logs can be obtained using the following URL:

    http://<socialMiner>/ccp-webapp/logs/ccpapi/

    This will list a set of log files. Please check the log files to see which one contains your error. You should see a log message tagged with the string TWITTER_FAIL_RESPONSE.
                            Message: Status is a duplicate.; Code:                187            The request is understood, but it                has been refused. An accompanying error message                will explain why. This code is used when requests                are being denied due to update limits.            twitter_forbidden_error_type                403    Forbidden    FAILED    false
    SocialMiner has little control over these errors. It simply forwards the response back from Twitter.

    If you are simply looking to understand how SocialMiner returns a Twitter code; a code returned from Twitter is included in the errorData portion of the TwitterProgress XML returned when polling for the status of a request to Twitter through the SocialMiner reply API. Here's an example of a 187 status code (returned when a duplicate Tweet is sent).

    <TwitterProgress>
        <apiErrors>
            <apiError>
                <errorData>Message: Status is a duplicate.; Code:
                    187</errorData>
                <errorMessage>The request is understood, but it
                    has been refused. An accompanying error message
                    will explain why. This code is used when requests
                    are being denied due to update limits.</errorMessage>
                <errorType>twitter_forbidden_error_type</errorType>
            </apiError>
        </apiErrors>
        <httpResponseCode>403</httpResponseCode>
        <httpResponseMessage>Forbidden</httpResponseMessage>
        <progress>FAILED</progress>
        <rateLimited>false</rateLimited>
    </TwitterProgress>

    I hope I've covered your question. Please write back if I haven't.

    Thanks,
    Mark



    Subject: RE: Get Status User is over daily status update limit  twitter code 185 (RE
    Replied by: esraldi darmawanto on 19-12-2013 06:46:29 PM
    [quote=
    ]
     Thx for respon, we want to know how a status code is returned using the SocialMiner Twitter reply API. we had a successful reply twitter with api URL http://<socminer>/ccp-webapp/ccp/reply/twitter/statuses/update ->return 202  but not posting to twitter cause have exceeded posting allowance. So how we can get notification when the account have exceeded posting allowance??

    how i can get this example response with API? i think this the answer

    <TwitterProgress>
        <apiErrors>
            <apiError>
                <errorData>Message: Status is a duplicate.; Code:
                    187</errorData>
                <errorMessage>The request is understood, but it
                    has been refused. An accompanying error message
                    will explain why. This code is used when requests
                    are being denied due to update limits.</errorMessage>
                <errorType>twitter_forbidden_error_type</errorType>
            </apiError>
        </apiErrors>
        <httpResponseCode>403</httpResponseCode>
        <httpResponseMessage>Forbidden</httpResponseMessage>
        <progress>FAILED</progress>
        <rateLimited>false</rateLimited>
    </TwitterProgress>

    i have checked in the API doc and i tried on page 95 http://<socialminer/ccp-webapp/ccp/reply/twitter/<objectID> but the result is 404 Not Found, I get <objectID> from http://<socialminer/ccp-webapp/ccp/feed how i can get the objectID from my twitter Account?
    --> response body
    1
    2[*]<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
    3[*]<apiErrors>
    4[*]    <apiError>
    5[*]        <errorMessage>The specified ID is not found</errorMessage>
    6[*]        <errorType>notFound</errorType>
    7[*]    </apiError>
    8[*]</apiErrors>
    Thx,

    Esraldi

    Subject: RE: Get Status User is over daily status update limit  twitter code 185 (RE
    Replied by: Mark Rzasa on 20-12-2013 10:55:00 AM
    Hi Esraldi,

    When you make a call to http://<socminer>/ccp-webapp/ccp/reply/twitter/statuses/update. It returns a url in the location header of the response. This URL has the format http://<socialminer>/ccp-webapp/ccp/reply/twitter/<number>. Making a GET request to SocialMiner using the URL returned in the Location will return the TwitterProgress XML. Please see page 94 of the 9.0.1 SocialMiner Developer's Guide for details on how SocialMiner's Twitter Reply API works.

    -Mark

    Subject: RE: Get Status User is over daily status update limit  twitter code 185 (RE
    Replied by: esraldi darmawanto on 23-12-2013 03:11:27 AM
    [quote=
    ]This is very helpful thank you Mark Rzasa

    thx,
    Esraldi