Want more features on Pastebin? Sign Up, it's FREE!
Guest

WP-Piwik - Support/Testscript

By: a guest on Sep 24th, 2013  |  syntax: XML  |  size: 2.41 KB  |  views: 9  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. *** Test 1/2: SitesManager.getSitesWithAtLeastViewAccess ***
  2. Using: cURL
  3. SSL peer verification: enabled
  4. User Agent:
  5. Call: analytics.MyUrl/?module=API&method=SitesManager.getSitesWithAtLeastViewAccess&format=XML&token_auth= + TOKEN
  6. Result:
  7. HTTP/1.1 200 OK
  8. Date: Tue, 24 Sep 2013 11:52:23 GMT
  9. Server: Apache/2.2.22
  10. X-Powered-By: PHP/5.4.9
  11. Expires: Thu, 19 Nov 1981 08:52:00 GMT
  12. Cache-Control: no-store, no-cache, must-revalidate, post-check=0, pre-check=0
  13. Pragma: no-cache
  14. Set-Cookie: PIWIK_SESSID=7297db0d13a6e814f73457c340823073; path=/; HttpOnly
  15. Connection: close
  16. Transfer-Encoding: chunked
  17. Content-Type: text/xml; charset=utf-8
  18.  
  19. <?xml version="1.0" encoding="utf-8" ?>
  20. <result>
  21.         <row>
  22.                 <idsite>1</idsite>
  23.                 <name>MyUrl+%28Wordpress%29</name>
  24.                 <main_url>MyUrl</main_url>
  25.                 <ts_created>2013-09-21 23:57:41</ts_created>
  26.                 <ecommerce>0</ecommerce>
  27.                 <sitesearch>1</sitesearch>
  28.                 <sitesearch_keyword_parameters />
  29.                 <sitesearch_category_parameters />
  30.                 <timezone>Europe/Vienna</timezone>
  31.                 <currency>USD</currency>
  32.                 <excluded_ips />
  33.                 <excluded_parameters />
  34.                 <excluded_user_agents />
  35.                 <group />
  36.                 <keep_url_fragment>0</keep_url_fragment>
  37.         </row>
  38.         <row>
  39.                 <idsite>3</idsite>
  40.                 <name>MySiteName</name>
  41.                 <main_url>http://wp.MyUrl</main_url>
  42.                 <ts_created>2013-09-24 10:06:42</ts_created>
  43.                 <ecommerce>0</ecommerce>
  44.                 <sitesearch>1</sitesearch>
  45.                 <sitesearch_keyword_parameters />
  46.                 <sitesearch_category_parameters />
  47.                 <timezone>Europe/Vienna</timezone>
  48.                 <currency>USD</currency>
  49.                 <excluded_ips />
  50.                 <excluded_parameters />
  51.                 <excluded_user_agents />
  52.                 <group />
  53.                 <keep_url_fragment>0</keep_url_fragment>
  54.         </row>
  55. </result>
  56. Time: 0.79s
  57.  
  58. *** Test 2/2: SitesManager.getSitesIdFromSiteUrl ***
  59. Using: cURL
  60. SSL peer verification: enabled
  61. User Agent:
  62. Call: analytics.MyUrl/?module=API&method=SitesManager.getSitesIdFromSiteUrl&url=http%3A%2F%2Fwp.MyUrl&format=XML&token_auth= + TOKEN
  63. Result:
  64. HTTP/1.1 200 OK
  65. Date: Tue, 24 Sep 2013 11:52:24 GMT
  66. Server: Apache/2.2.22
  67. X-Powered-By: PHP/5.4.9
  68. Expires: Thu, 19 Nov 1981 08:52:00 GMT
  69. Cache-Control: no-store, no-cache, must-revalidate, post-check=0, pre-check=0
  70. Pragma: no-cache
  71. Set-Cookie: PIWIK_SESSID=3ded5b1aeb36a8883dd0fde8746c6b8e; path=/; HttpOnly
  72. Connection: close
  73. Transfer-Encoding: chunked
  74. Content-Type: text/xml; charset=utf-8
  75.  
  76. <?xml version="1.0" encoding="utf-8" ?>
  77. <result>
  78.         <row>
  79.                 <idsite>3</idsite>
  80.         </row>
  81. </result>
  82. Time: 0.17s
clone this paste RAW Paste Data