Sample Configuration File

Parent Previous Next


Sample Configuration Files


The Xml below is a configuration file example that allows users to connect to Google Analytics. Copy the Xml into a text editor and save it with the .config file extension.


<Configuration>

 <OAuth2ConnectionManager>

   <Parameters>

     <Parameter Key="{RedirectUri}" Description="The Redirect Uri defined in your developer console for the key." Name="Redirect Uri" Required="True" />

     <Parameter Key="{ApiKey}" Description="The client id of the key you're using from the developer console" Name="Client Id" Required="True" />

     <Parameter Key="{ApiSecret}" Description="The client secret of the key you're using from the developer console" Name="Client Secret" Required="True" />

    </Parameters>

     <AuthorizationRequestUrl>https://accounts.google.com/o/oauth2/auth?approval_prompt=force&amp;access_type=offline&amp;state=security_token&amp;client_id={ApiKey}&amp;scope=profile%20https%3A%2F%2Fwww.googleapis.com%2Fauth%2Fanalytics.readonly&amp;response_type=code&amp;redirect_uri={RedirectUri}</AuthorizationRequestUrl>

     <AuthorizationRequestMethod>Post</AuthorizationRequestMethod>

     <AuthorizationRequestBody></AuthorizationRequestBody>

     <GrantCodeQueryStringParameter>code</GrantCodeQueryStringParameter>

     <AccessTokenRequestUrl>https://www.googleapis.com/oauth2/v3/token</AccessTokenRequestUrl>

     <AccessTokenRequestBody>grant_type=authorization_code&amp;code={GrantCode}&amp;client_id={ApiKey}&amp;client_secret={ApiSecret}&amp;redirect_uri={RedirectUri}</AccessTokenRequestBody>

     <AccessTokenRequestMethod>Post</AccessTokenRequestMethod>

     <AccessTokenJsonToken>access_token</AccessTokenJsonToken>

     <AccessTokenExpiresInJsonToken></AccessTokenExpiresInJsonToken>

     <AccessTokenExpiresInMode></AccessTokenExpiresInMode>

     <IsBearerToken>true</IsBearerToken>

     <RefreshTokenRequestMethod>Post</RefreshTokenRequestMethod>

     <RefreshTokenRequestUrl>https://www.googleapis.com/oauth2/v3/token</RefreshTokenRequestUrl>

     <RefreshTokenRequestBody>grant_type=refresh_token&amp;client_id={ApiKey}&amp;client_secret={ApiSecret}&amp;refresh_token={RefreshToken}</RefreshTokenRequestBody>

     <RefreshTokenJsonPath>refresh_token</RefreshTokenJsonPath>

     <RefreshTokenHeaders>

       <Header Name="Content-Type" Value="application/x-www-form-urlencoded" />

     </RefreshTokenHeaders>

     <Headers>

       <Header Name="Content-Type" Value="application/x-www-form-urlencoded" />

     </Headers>

 </OAuth2ConnectionManager>

 <EndPoints>

   <EndPoint Url="https://analyticsreporting.googleapis.com/v4/reports:batchGet" ReturnType="Json" HttpMethod="Post" RootJsonPath="" Name="User Profile" ApiUrl="https://developers.facebook.com/docs/graph-api/reference/v2.2/user">

     <Paging PagingToken="" IsFinishedPagingValue="" PagingQueryStringValue="" IsPagingTokenUrl="True" />

     <XmlNamespaces>

       <Namespace Prefix="x" Uri="http://blah.com" />

     </XmlNamespaces>

     <PostBody>Blah</PostBody>

     <Parameters>

       <!-- these can be used to prompt the user for values in the url or the postbody -->


       <Parameter Name="user-id" Description="Facebook User ID" />

     </Parameters>

     <Headers>

       <Header Name="Name" Value="Value" />

     </Headers>

     <AuthenticationResults>

       <Result Name="Name" Value="Value" />

     </AuthenticationResults>

     <OutputColumns>

       <OutputColumn Name="FirstName" TokenPath="first_name" DataType="130" Length="255" />

       <OutputColumn Name="LastName" TokenPath="last_name" DataType="130" Length="255" />

       <OutputColumn Name="Link" TokenPath="link" DataType="130" Length="2000" />

       <OutputColumn Name="Timezone" TokenPath="last_name" DataType="130" Length="255" />

       <OutputColumn Name="ID" TokenPath="id" DataType="130" Length="20" />

     </OutputColumns>

   </EndPoint>


 </EndPoints>

</Configuration>