Skip to content

Repository files navigation

Feefo.NET

A Simple Feefo .NET Client API Wrapper

install from nugetdownloadsBuild status

Getting started

Feefo.NET can be installed via the package manager console by executing the following commandlet

PM>Install-Package Feefo

Once we've got the Feefo package installed, we need to create a FeefoClient object, this is the client that we will use for all interactions to Feefo. The FeefoClient requires a FeefoSettings to passed in to its constructor which contains the logon details.

varfeefoSettings=newFeefoSettings("www.examplesupplier.com");varclient=newFeefoClient(feefoSettings);

You can also specify the BaseUri within the FeefoSettings if you wish to connect through your own layer of caching:

varfeefoSettings=newFeefoSettings(newUri("http://feefo.examplesupplier.com/feefo/xmlfeed.jsp"),"www.examplesupplier.com");

Fetching feedback

To fetch feedback from feefo we can call the GetFeedbackAsync method on the FeefoClient:

varresponse=awaitclient.GetFeedbackAsync();

You can also vary what Feefo sends back by passing in a FeedbackRequest object in to the GetFeedbackAsync method:

varfeedbackRequest=newFeedbackRequest(){Limit=50,Mode=Mode.ServiceAndProduct,Sort=newSort(SortBy.Date,Order.Ascending),Since=Since.Month};varresponse=awaitclient.GetFeedbackAsync(feedbackRequest);

Client response

The response contains a FeedbackList which contains a list of Feedback and Summary.

Each feedback is the feedback submitted by the customer which will contains the following properties:

PropertyDescription
FeedbackIdA unique ID for the feedback.
CountInteger representing the position of the item of feedback in the returned results.
DateThe date that the feedback was left.
DateTimeThe date and time that the feedback was left.
DescriptionThe description of the item the customer is leaving feedback on.
ProductCodeThe unique product reference for this order item in Feefo, also known as the vendor ref or product search code. In retail scenarios, this is usually the SKU.
LinkThe URL of the product page on the supplier's site.
FacebookShareLinkThe URL to share this item of feedback on Facebook.
AdditionalItemsContains other products the customer bought.
ItemThe description of an additional product the customer bought.
ReviewRatingThe rating supplied by the customer.
ServiceRatingThe service rating supplied by the customer.
ProductRatingThe product rating supplied by the customer.
CustomerCommentThis will be the full comment that the customer left about the service they received, the product they bought, or both.
ShortCustomerCommentA shortened version of the customer comment, ending in an ellipsis (...)
VendorCommentThe full vendor reply to the customer's service comment.
ShortVendorCommentA shortened version of the vendor's reply, ending in an ellipsis (...)
FurtherCommentsThreadContains all vendor comments, and all follow-up customer comments

The Summary is a summary of the account with summary details on the request:

PropertyDescription
ModeShows if the feed mode has been set to show 'product' or 'service' feedback.
VendorLogonThe supplier's Feefo logon.
TotalServiceCountCount of all the service feedbacks that have been received for the supplier.
TotalProductCountCount of all the product feedbacks received for the supplier.
CountThe count of feedbacks that have been received.
SupplierLogoAn http link to display the supplier's logo as stored within Feefo.
TitleA field, suggested for use as a page title, containing the name of the supplier.
BestThe highest rating given in the range of reviews returned by the query.
WorseThe lowest rating given in the range of reviews returned by the query.
AverageThe average rating given to the reviews.
StartThe start number of the first feedback in the returned feedback list – usually 1 but may change if multiple pages are requested.
LimitThe number of feedbacks returned in the query
ServiceExcellentAn integer with the number of service feedbacks rated as Excellent
ServiceGoodAn integer with the number of service feedbacks rated as Good
ServicePoorAn integer with the number of service feedbacks rated as Poor
ServiceBadAn integer with the number of service feedbacks rated as Bad
ProductExcellentAn integer with the number of product feedbacks rated as Excellent
ProductGoodAn integer with the number of product feedbacks rated as Good
ProductPoorAn integer with the number of product feedbacks rated as Poor
ProductBadAn integer with the number of product feedbacks rated as Bad
TotalResponsesA count of every single feedback response recorded against the supplier.
FeedGenerationThe date and time of the feed generation

Contributing

  1. Fork
  2. Hack!
  3. Pull Request

About

A Simple Feefo .NET Client API Wrapper

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages