Coder Social home page Coder Social logo

yotpo.net's Introduction

Yotpo.Net

.NET client library for Yotpo Reviews Platform API

Bulid Status

Methods Implemented

  • Authentication
    • Request OAuth Token
  • Purchases
    • Create an Order
    • Delete a Purchase
  • Users
    • Create a New User
    • Retrieve User Profile Data
  • Mail After Purchase
    • Send Test Email

Usage

Example:

using YotpoNet;
using YotpoNet.Models;

var yotpoClient = new YotpoClient("Your API Key", "Your API secret");
var userToken = yotpoClient.RequestOAuthToken();

yotpoClient.CreateOrder(new NewOrder
{
    validate_data = true,
    utoken = userToken.AccessToken,
    email = "[email protected]",
    customer_name = "Customer Name",
    order_id = "376611",
    order_date = "2017-07-22",
    currency_iso = "USD",
    products = new List<Product>
    {
        new Product
        {
            ProductSKU = "SKU12300",
            ProductData = new ProductData
            {
                url = "http://example_product_url1.com",
                name = "product1",
                image = "http://images2.fanpop.com/image/photos/13300000/A1.jpg",
                description = "this is the description of a product",
                price = 100
            }
        }
    }
});

Client Secrets

Update src/lib/ClientCredentials.json with your client key and secret for Unit Testing.

yotpo.net's People

Contributors

davebrothers avatar dependabot[bot] avatar soulfire86 avatar xps avatar

Stargazers

 avatar

Watchers

 avatar  avatar

Forkers

davebrothers

yotpo.net's Issues

Unexpected character - GetReviewsForProduct

Hi,
I'm using your DLL (yotpo.net version 0.1.0.18)
i'm getting this exception from our logs every once in a while:

Unexpected character encountered while parsing value: <. Path '', line 0, position 0. at Newtonsoft.Json.JsonTextReader.ParseValue() at Newtonsoft.Json.Linq.JObject.Load(JsonReader reader, JsonLoadSettings settings) at Newtonsoft.Json.Linq.JObject.Parse(String json, JsonLoadSettings settings) at YotpoNet.YotpoClient.GetReviewsForProduct(String productID, Int32 pageNum, Int32 resultsPerPage) at GlobalServices.GetYotpoReviewsForProduct(String productid, String productname)

any idea what that might be? it seems that "GetReviewsForProduct" doesn't know how to handle an unexpected value.

thanks

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.