Forum Discussion

scsp6289's avatar
scsp6289
New Contributor
8 years ago

can someone explain what i am looking at?

https://api.twitter.com version 1.1 TEMPLATE xs:string 1.1 1.0 1.1 format json TEMPLATE json json count QUERY xs:string since_id QUERY xs:string max_id QUERY trim_user QUERY xs:boolean contributor_details QUERY xs:boolean include_entities QUERY xs:boolean application/json;charset=utf-8 200 Response application/xml; charset=utf-8 404 errors <xml-fragment/> https://api.twitter.com Global HTTP Settings screen_name QUERY xs:string count QUERY xs:string application/json;charset=utf-8 200 Response <xml-fragment/> https://api.twitter.com Global HTTP Settings application/json;charset=utf-8 200 Response <xml-fragment/> https://api.twitter.com Global HTTP Settings count 50 QUERY xs:string 50 since_id QUERY xs:string max_id QUERY xs:string application/json; charset=utf-8 200 Response application/json;charset=utf-8 200 Response application/xml; charset=utf-8 404 errors <xml-fragment/> https://api.twitter.com Global HTTP Settings version 1.1 TEMPLATE xs:string 1.1 1.1 1.0 format json TEMPLATE json json q QUERY xs:string since_id QUERY xs:string max_id QUERY xs:string result_type QUERY xs:string mixed recent popular count QUERY xs:string geocode QUERY lang QUERY locale QUERY until QUERY include_entities QUERY xs:boolean callback QUERY application/json;charset=utf-8 200 twe:Response application/json; charset=utf-8 400 twe:Fault <xml-fragment/> https://api.twitter.com Global HTTP Settings application/json; charset=utf-8 200 set:Response <xml-fragment/> https://api.twitter.com Global HTTP Settings SEQUENTIAL Basic twitter API requests - Search Request : makes sure there are hits when searching for "soapui" - Retweet Request : makes sure there are retweets of our account - Mentions Request : makes sure there are mentions of our account - User Timeline Request : makes sure that our timeline contains at least 3 entries see https://dev.twitter.com/docs/api/1.1 <xml-fragment/> https://api.twitter.com declare namespace ns1='https://api.twitter.com/1.1/search/tweets.json'; //ns1:Response[1]/ns1:search_metadata[1] <search_metadata xmlns="https://api.twitter.com/1.1/search/tweets.json">
<completed_in>*</completed_in>
<count>*</count>
<max_id>*</max_id>
<max_id_str>*</max_id_str>
<next_results>*</next_results>
<query>soapui</query>
<refresh_url>*</refresh_url>
<since_id>0</since_id>
<since_id_str>0</since_id_str>
</search_metadata> true false false declare namespace ns1='https://api.twitter.com/1.1/search/tweets.json'; count( //ns1:Response/ns1:statuses/ns1:e)> 5 true false false false Global HTTP Settings <xml-fragment/> https://api.twitter.com count( //Response/e/text) > 0 true false false false Global HTTP Settings <xml-fragment/> https://api.twitter.com exists( //Response/e/text) true false false false Global HTTP Settings <xml-fragment/> https://api.twitter.com count( //Response/e/text) > 3 true false false false Global HTTP Settings oauth_consumer_key oauth_consumer_secret oauth_access_token oauth_access_token_secret // get project def project = com.eviware.soapui.model.support.ModelSupport.getModelItemProject( request ) // initialize OAuth consumer def consumer = new oauth.signpost.commonshttp.CommonsHttpOAuthConsumer( project.getPropertyValue( "oauth_consumer_key" ), project.getPropertyValue( "oauth_consumer_secret" )); consumer.setTokenWithSecret( project.getPropertyValue( "oauth_access_token" ), project.getPropertyValue( "oauth_access_token_secret" )); // sign the request consumer.sign( context.httpMethod )