Skip to content
Permalink
Branch: master
Find file Copy path
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
201 lines (191 sloc) 9.22 KB
<?xml version="1.0" encoding="utf-8" ?>
<Suite Title="Wordpress.com" RequireVersion="8.0.30" Id="Wordpress" Category="Webmaster" SourceUrl="https://github.com/nielsbosma/SeoTools-for-Excel-Connectors/blob/master/Wordpress.xml" HelpUrl="http://seotoolsforexcel.com/wordpress/" HelpText="Documentation">
<Author Name="Victor" Url="http://community.seotoolsforexcel.com/users/diskborste/activity"/>
<DefaultOAuthAuthenticator StayAuthenticated="true" TokenName="access_token" AuthUrl="https://public-api.wordpress.com/oauth2/authorize?client_id=63192&amp;redirect_uri={0}&amp;response_type=token&amp;scope=global"/>
<RestConnector Id="MySiteUsers" Title="My Site Users" HelpText="List the users of your site." HelpUrl="https://developer.wordpress.com/docs/api/1.1/get/sites/%24site/users/">
<Parameters>
<Text Id="Id" Title="Site Id or Domain" Debug.DefaultValue="151788701" Required="true"/>
</Parameters>
<Fetch>
<HttpSettings>
<RequestHeaders>
<Header Name='Authorization'><![CDATA[Bearer @(Model.Authenticator.Token)]]></Header>
</RequestHeaders>
</HttpSettings>
<Fetch.Url>
<![CDATA[
https://public-api.wordpress.com/rest/v1/sites/@(Model.Id)/users
]]>
</Fetch.Url>
</Fetch>
<Parse>
<JsonPath Expr="users.*">
<JsonPath Expr="ID" Id="UserId" Title="User Id" Converter="String"/>
<JsonPath Expr="site_ID" Id="SiteId" Title="Site Id" Converter="String"/>
<JsonPath Expr="login" Id="Login" Title="Login" Converter="String"/>
<JsonPath Expr="email" Id="Email" Title="Email" Converter="String"/>
<JsonPath Expr="first_name" Id="FirstName" Title="FirstName" Converter="String"/>
<JsonPath Expr="last_name" Id="LastName" Title="LastName" Converter="String"/>
<JsonPath Expr="URL" Id="Url" Title="URL" Converter="String"/>
<JsonPath Expr="ip_address" Id="IpAddress" Title="IP Address" Converter="String"/>
</JsonPath>
</Parse>
<Fail>
<JsonPath Expr="error.message"/>
</Fail>
</RestConnector>
<RestConnector Id="SiteLookup" Title="Site Lookup" HelpText="Get information about a site." HelpUrl="https://developer.wordpress.com/docs/api/1.1/get/sites/%24site/">
<Parameters>
<Text Id="Id" Title="Site Id or Domain" Debug.DefaultValue="en.blog.wordpress.com" Required="true"/>
</Parameters>
<Fetch>
<HttpSettings>
<RequestHeaders>
<Header Name='Authorization'><![CDATA[Bearer @(Model.Authenticator.Token)]]></Header>
</RequestHeaders>
</HttpSettings>
<Fetch.Url>
<![CDATA[
https://public-api.wordpress.com/rest/v1/sites/@(Model.Id)
]]>
</Fetch.Url>
</Fetch>
<Parse>
<JsonPath Expr="ID" Id="SiteId" Title="Site Id" Converter="String"/>
<JsonPath Expr="name" Id="Name" Title="Name" Converter="String"/>
<JsonPath Expr="description" Id="Description" Title="Description" Converter="String"/>
<JsonPath Expr="URL" Id="Url" Title="URL" Converter="String"/>
<JsonPath Expr="subscribers_count" Id="Subscribers" Title="Subscribers" Converter="Long"/>
</Parse>
<Fail>
<JsonPath Expr="error.message"/>
</Fail>
</RestConnector>
<RestConnector Id="MySites" Title="My Sites" HelpText="Get a list of your sites." HelpUrl="https://developer.wordpress.com/docs/api/1.1/get/me/sites/">
<Fetch>
<HttpSettings>
<RequestHeaders>
<Header Name='Authorization'><![CDATA[Bearer @(Model.Authenticator.Token)]]></Header>
</RequestHeaders>
</HttpSettings>
<Fetch.Url>
<![CDATA[
https://public-api.wordpress.com/rest/v1.1/me/sites
]]>
</Fetch.Url>
</Fetch>
<Parse>
<JsonPath Expr="sites.*">
<JsonPath Expr="ID" Id="SiteId" Title="Site Id" Converter="String"/>
<JsonPath Expr="name" Id="Name" Title="Name" Converter="String"/>
<JsonPath Expr="description" Id="Description" Title="Description" Converter="String"/>
<JsonPath Expr="URL" Id="Url" Title="URL" Converter="String"/>
<JsonPath Expr="subscribers_count" Id="Subscribers" Title="Subscribers" Converter="Long"/>
</JsonPath>
</Parse>
<Fail>
<JsonPath Expr="error.message"/>
</Fail>
</RestConnector>
<RestConnector Id="MySiteStatistics" Title="My Site Statistics" HelpText="" HelpUrl="https://developer.wordpress.com/docs/api/1.1/get/sites/%24site/stats">
<Parameters>
<Text Id="Id" Title="Site Id or Domain" Debug.DefaultValue="151788701" Required="true" Select.Connector="MySites" Select.IdField="SiteId" Select.TitleField="Name"/>
</Parameters>
<Fetch>
<HttpSettings>
<RequestHeaders>
<Header Name='Authorization'><![CDATA[Bearer @(Model.Authenticator.Token)]]></Header>
</RequestHeaders>
</HttpSettings>
<Fetch.Url>
<![CDATA[
https://public-api.wordpress.com/rest/v1/sites/@(Model.Id)/stats
]]>
</Fetch.Url>
</Fetch>
<Parse>
<JsonPath Expr="stats">
<JsonPath Expr="visitors_today" Id="VisitorsToday" Title="Visitors Today" Converter="Long"/>
<JsonPath Expr="visitors_yesterday" Id="VisitorsYesterday" Title="Visitors Yesterday" Converter="Long"/>
<JsonPath Expr="visitors" Id="Visitors" Title="Visitors" Converter="Long"/>
<JsonPath Expr="views_today" Id="ViewsToday" Title="Views Today" Converter="Long"/>
<JsonPath Expr="views_yesterday" Id="ViewsYesterday" Title="Views Yesterday" Converter="Long"/>
<JsonPath Expr="views_best_day" Id="ViewsBestDay" Title="Views Best Day" Converter="Auto"/>
<JsonPath Expr="views" Id="Views" Title="Views " Converter="Long"/>
<JsonPath Expr="comments" Id="Comments" Title="Comments" Converter="Long"/>
<JsonPath Expr="posts" Id="Posts" Title="Posts" Converter="Long"/>
<JsonPath Expr="followers_blog" Id="Followers" Title="Followers" Converter="Long"/>
<JsonPath Expr="followers_comments" Id="Followers_Comments" Title="Followers Comments" Converter="Long"/>
<JsonPath Expr="comments_per_month" Id="CommentsPerMonth" Title="Comments Per Month" Converter="Double"/>
<JsonPath Expr="comments_spam" Id="CommentsSpam" Title="CommentsSpam" Converter="Long"/>
<JsonPath Expr="categories" Id="Categories" Title="Categories" Converter="Long"/>
<JsonPath Expr="tags" Id="Tags" Title="Tags" Converter="Long"/>
<JsonPath Expr="shares" Id="Shares" Title="Shares" Converter="Long"/>
<JsonPath Expr="shares_twitter" Id="SharesTwitter" Title="Shares Twitter" Converter="Long"/>
<JsonPath Expr="shares_press-this" Id="SharesPressThis" Title="Shares Press This" Converter="Long"/>
<JsonPath Expr="shares_google-plus-1" Id="SharesGooglePlus" Title="Shares GooglePlus" Converter="Long"/>
<JsonPath Expr="shares_facebook" Id="SharesFacebook" Title="Shares Facebook" Converter="Long"/>
</JsonPath>
</Parse>
<Fail>
<JsonPath Expr="error.message"/>
</Fail>
</RestConnector>
<RestConnector Id="MySiteDailyViews" Title="My Site Daily Views" HelpText="" HelpUrl="https://developer.wordpress.com/docs/api/1.1/get/sites/%24site/stats">
<Parameters>
<Text Id="Id" Title="Site Id or Domain" Debug.DefaultValue="151788701" Required="true" Select.Connector="MySites" Select.IdField="SiteId" Select.TitleField="Name"/>
</Parameters>
<Fetch>
<HttpSettings>
<RequestHeaders>
<Header Name='Authorization'><![CDATA[Bearer @(Model.Authenticator.Token)]]></Header>
</RequestHeaders>
</HttpSettings>
<Fetch.Url>
<![CDATA[
https://public-api.wordpress.com/rest/v1/sites/@(Model.Id)/stats
]]>
</Fetch.Url>
</Fetch>
<Parse>
<JsonPath Expr="visits.data.*">
<JsonPath Expr="0" Id="Date" Title="Date" Converter="DateTime"/>
<JsonPath Expr="1" Id="views" Title="Views" Converter="Long"/>
<JsonPath Expr="2" Id="visitors" Title="Visitors" Converter="Long"/>
</JsonPath>
</Parse>
<Fail>
<JsonPath Expr="error.message"/>
</Fail>
</RestConnector>
<RestConnector Id="MySiteFollowers" Title="My Site Followers" HelpText="List your site's followers in reverse chronological order." HelpUrl="https://developer.wordpress.com/docs/api/1.1/get/sites/%24site/follows/">
<Parameters>
<Text Id="Id" Title="Site Id or Domain" Debug.DefaultValue="151788701" Required="true" Select.Connector="MySites" Select.IdField="SiteId" Select.TitleField="Name"/>
</Parameters>
<Fetch>
<HttpSettings>
<RequestHeaders>
<Header Name='Authorization'><![CDATA[Bearer @(Model.Authenticator.Token)]]></Header>
</RequestHeaders>
</HttpSettings>
<Fetch.Url>
<![CDATA[
https://public-api.wordpress.com/rest/v1/sites/@(Model.Id)/follows
]]>
</Fetch.Url>
</Fetch>
<Parse>
<JsonPath Expr="users.*">
<JsonPath Expr="ID" Id="UserId" Title="User Id" Converter="String"/>
<JsonPath Expr="site_ID" Id="SiteId" Title="Site Id" Converter="String"/>
<JsonPath Expr="name" Id="Name" Title="Name" Converter="String"/>
<JsonPath Expr="login" Id="Login" Title="Login" Converter="String"/>
<JsonPath Expr="URL" Id="Url" Title="URL" Converter="String"/>
<JsonPath Expr="ip_address" Id="IpAddress" Title="IP Address" Converter="String"/>
</JsonPath>
</Parse>
<Fail>
<JsonPath Expr="error.message"/>
</Fail>
</RestConnector>
</Suite>
You can’t perform that action at this time.