Data Extraction

4 Posts tagged with the web tag

I have seen a bit of an interest in the original sample application that I put together and since then there have been a number of changes to to DX API.  With the latest release of the Webtrends Analytics Insight user interface we have now update this API to V2.  Along with that I have had a chance to do additional testing of the Excel VBA application.  These two events have now led to version v6 of the Sample Application.

 

So, what’s in this latest version?  Well, first of all, there are bug fixes.  I won’t detail them here, but there were a few and there are probably a few still in there. Next I have updated all of the REST calls to V2 of the API.  And, finally, I have added new functionality that will allow you to see both the Profile and Report Meta data items for any selected report.  It’s all in the documentation, so please read it for details.

 

One of the interesting updates in the V2 DX API is the inclusion of two new reports: an Account Key Metrics report and a Profile Key Metrics report.  These have been added as new reports in this Sample Application as well.

 

So, as always, enjoy this new version of the application and any feedback you have is welcome.  The new version can be found as an embedded object in the attached documentation.

 

Michael Love

Senior Solutions Engineer

0 Comments Permalink

Recently I have been working a lot with the Webtrends DX web services here internally.  Our consulting & services group has been working with various technologies to connect, retrieve data, and provide that data in informational reports to clients and partners.  In the course of working on these various projects I have added some functionality to the Webtrends DX web services SDK and also made some fairly solid in roads on the practices used to develop applications for Excel, Outlook, and other Microsoft Office Applications.  Here is a break down of the progress I have made over the last few weeks.  I hope it is helpful in everyone's efforts to extend, report, and provide analytics data & knowledge to their respective organizations!

 

Webtrends DX SDK - The SDK provides dramatically simplified standard programmatic access to reports, profile listings, report listings, and a mapper object to provide the reports in various object formats.  Recently I have added the ability for the mapper object to take a standard dimensional report object and provide the report as a standard ADO.NET DataTable.  This dramatically simplifies a lot of the functions of sorting, finding, or specifying various parts of the report data or manipulating it for presentation.  In addition this is a more familiar object format for ETL using SSIS or even other ETL tools  out on the market.  The following is an example of the code used to retrieve a report with the SDK and then do a conversion into a standard DataTable Object.

 

User webtrendsUser =
    new User
        {
            AccountName = Resources.Options.Default.Account,
            UserName = Resources.Options.Default.Password,
            Password = EncryptionHelper.Decrypt(Resources.Options.Default.Password)
        };
 
var report = ReportFactory.CreateDimensionalReport("reportIdGoesHere", "profileIdGoesHere", null, null, null,
                                                   null, null, true, webtrendsUser);
Mapper mapper = new Mapper(report);
DataTable dataTable = mapper.MapReportDefinitionToDataTable();

 

In the code above, I have created a Webtrends User object and assigned the appropriate parameters.  In this case I am using the Resources (Options.Settings) available to Windows Application to store and retrieve those settings.  This way the user will not have to enter them every time they want to run the report.

 

I then have the report object being pulled from the ReportFactory Object via the CreateDimensionalReport factory method.  The parameters that are actually needed are the report ID, the profile ID, and the Webtrends User Object.  The null values are other various parameters that can be set but do not particularly need to be set.

 

Then I create a Mapper Object and pass it the report object via the constructor.  This object requires a report object upon instantiation.  I setup the object this way since there always needs to be a report object before any manipulations or mappings can be made.

 

The last step is to declare the DataTable Object, then pull the data table from the builder method MapReportDefinitionToDataTable().

 

For the SDK assembly and code check out the Document Outlining the offering.  In addition over the next couple of weeks I will be posting more information regarding how to use the SDK, best practices, and code snippets for accessing the Webtrends DX Web Services.  There will be additional blog entries and definitely some documentation coming soon (I'm working on it!).  But in the meantime, if you have any questions, comments, or ideas on how we should extend or modify the SDK please let us know here on the Webtrends Developer Forums!

 

I'll have some more entries real soon about best practices, how to code against Outlook or Excel, and more.  So subscribe and stay up to speed on everything Webtrends!  Thanks for reading.

0 Comments Permalink

The REST web services documentation has been updated.  New sections include:

 

  • How-to section: invoking with Ruby, getting report GUIDs
  • Best practices section: connecting asynchronously, compressing data

 

You can find the documentation from the Developer Site home page, REST API under the Resources area in the upper-right.

 

We'll be updating the documentation frequently, so please provide your feedback via the Developer Network.  Feel free to comment on this blog post or start a new discussion.

0 Comments Permalink

On behalf of all of us at Webtrends, welcome to the Developer Network.  We invite you to participate in this developer community in support of Webtrends Open Exchange.  At first, we'll focus this site on a new set of web services we are developing to meet the various business and technical requirements above and beyond our current set of web services and APIs.  We'll also be adding information and discussions regarding additional methods, as well as the upcoming Data Collection APIs as announced April 7 at our Engage 2009 conference and in our Open Exchange press release.

 

Participating in our community discussion of the new set of web services is easy - simply create an account on this site.  This will allow you to create new discussions and comment on existing ones.  If you prefer not to create an account, you can still view activity on our site but won't be able to comment or participate.

 

If you are a Webtrends On Demand customer and would like access to the beta web services, please email us at developer@webtrends.com with your On Demand account name and the user name you'll be using to access beta the web services.  Webtrends On Premise software customers: you can request access to a test On Demand account by emailing developer@webtrends.com, specifying that you are an On Premise Webtrends user and would like a test account.  Please note: in order to get access to the beta web services, at least one representative of each customer must be a member of the Developer Network.

 

Also feel free to provide direct feedback to us regarding this site or the web services by emailing developer@webtrends.com

 

-Derek Fine, Webtrends Product Management

0 Comments Permalink