Unstarring Messages Using the Google Reader API

Does anyone know how to remove stars for articles shot in Google Reader using its unofficial API?

I found this one, but it does not work:

http://www.niallkennedy.com/blog/2005/12/google-reader-api.html

Neither the pyrfeed module in Python, I get an IOError exception every time.

+3
source share
2 answers

Try using:

r=user%2F[user ID]%2Fstate%2Fcom.google%2Fstarred 

instead

a=user%2F[user ID]%2Fstate%2Fcom.google%2Fstarred 

when calling edit-tag.

+1
source

Python ( Java), , , , , . , , , , , .

, ( , , ):

        String authToken = getGoogleAuthKey();
    // I use Jsoup for the requests, but you can use anything you
    // like - for jsoup you usually just need to include a jar
    // into your java project
Document doc = Jsoup.connect("http://www.google.com/reader/api/0/edit-tag")
    // this is important for permission - more details on how to get this ahead in the text
    .header("Authorization", _AUTHPARAMS + authToken)
    .data(
             // you don't need the userid, the '-' will suffice
             // "r" means remove. you can also use "a" to add
             // you have lots of other options besides starred. e.g: read
            "r", "user/-/state/com.google/starred",
            "async", "true",
            // the feed, but don't forget the beginning: feed/
            "s", "feed/http://www.gizmodo.com/index.xml",
            // there are 2 id formats, easy to convert - more info ahead in the text
            "i", "tag:google.com,2005:reader/item/1a68fb395bcb6947",
            // another token - this one for allow editing - more details on how to get this ahead in the text
            "T", "//wF1kyvFPIe6JiyITNnMWdA"
    )
    // I also send my API key, but I don't think this is mandatory
    .userAgent("[YOUR_APP_ID_GOES_HERE].apps.googleusercontent.com")
    .timeout(10000)
    // VERY IMPORTANT - don't forget the post! (using get() will not work)
    .post();

(, ).

, http://www.google.com/reader/api/0/stream/items/ids http://www.google.com/reader/atom/user/-/state/com.google/starred. API .

2 . API ( ) : http://www.chrisdadswell.co.uk/android-coding-example-authenticating-clientlogin-google-reader-api/, http://code.google.com/p/pyrfeed/wiki/GoogleReaderAPI, http://blog.martindoms.com/2009/10/16/using-the-google-reader-api-part-2

, !

0

Source: https://habr.com/ru/post/1710852/


All Articles