public Response unsubscribe ( String topic , String callbackUrl , JinxConstants . VerificationMode mode , String verificationToken ) throws JinxException { JinxUtils . validateParams ( topic , callbackUrl , mode ) ; Map < String , String > params = new TreeMap <> ( ) ; params . put ( "method" , "flickr.push.unsubscribe" ) ; params . put ( "topic" , topic ) ; params . put ( "callback" , callbackUrl ) ; params . put ( "verify" , mode . toString ( ) ) ; if ( ! JinxUtils . isNullOrEmpty ( verificationToken ) ) { params . put ( "verify_token" , verificationToken ) ; } return jinx . flickrGet ( params , Response . class ) ; }
Unsubscribe from a push feed .