Laravel A2Reviews Client API lets you build apps, extensions, or plugins to get reviews from the A2reviews APP.

Overview

Total Downloads Latest Stable Version License Latest Stable Version Latest Unstable Version composer.lock

Overview

Laravel A2Reviews Client API lets you build apps, extensions or plugins to get reviews from the A2reviews APP. Including adding reviews to a store's products. It is used to import and export reviews through the API. This is the official package built and developed by A2Reviews, Inc.

Requirements

Installation

Execute the following command to get the package:

composer require eosvn/laravel-a2reviews-client-api

Update .env

A2REV_SITE_API_KEY=<your_a2reviews_api_key>
A2REV_SITE_API_SECRET=<your_a2reviews_api_secret>

Usage

Create an instance of the A2Reviews Client, then used to access the A2Reviews Client API.

<?php

use EOSVN\A2ReviewsClient\A2ReviewsClient;

$a2Review = new A2ReviewsClient();

Examples

In the examples below we just used some parameters as a demo. For detailed parameters please visit our documentation.

Product Reviews

APIs for reviews of product, allows to get the reviews of a product or all products. Make it possible to deploy on different platforms.

Get product reviews
$response = $a2Review->review->getProductReviews([
    'handle' => '{product_handle}',
    'limit' => 2 // Number record per page
]);
Get feature reviews
$response = $a2Review->review->getFeatureReviews([
    'limit' => 2
]);
Get block list reviews
$response = $a2Review->review->getBlockListReviews([
    'limit' => 2
]);
Get block reviews
$response = $a2Review->review->getBlockReviews([
    'limit' => 2
]);
Write review to product
$response = $a2Review->review->addReviewToProduct([
    'handle' => '{product_handle}',
    'review' => [
        'rating' => 4,
        'title' => 'Package title review.',
        'author' => 'Author name',
        'email' => '[email protected]',
        'content' => 'Package content review.'
    ]
]);
Update a review
$response = $a2Review->review->updateReview([
    'id' => '{review_id}',
    'handle' => '{product_handle}',
    'review' => [
        'rating' => 2,
        'title' => 'Package title review (update).',
        'author' => 'Author name',
        'email' => '[email protected]',
        'content' => 'Package content review.'
    ]
]);
Update image review
$response = $a2Review->review->updateImageReview([
    'id' => '{review_id}',
    'handle' => '{product_handle}',
    'image' => [
        'attachment' => '{image data base64}',
        'filename' => '{filename}'
    ]
]);

Client Site Settings

APIs for client site, allows to get the settings global, setting languages.

Get global settings
$response = $a2Review->setting->getGlobalSettings();
Get reviews languages
$response = $a2Review->setting->getReviewLanguages();
Get questions answers language
$response = $a2Review->setting->getQuestionAnswerLanguages();
Get common languages
$response = $a2Review->setting->getCommonLanguages();

After request, using below way to get data

$response->getData();

Documentation

A2Reviews - Official Client API Documentation

Changelog

Please see CHANGELOG for more information what has changed recently.

Security

If you discover a security vulnerability within laravel-a2reviews-client-api, please send an e-mail to A2Reviews, Inc via [email protected]. All security vulnerabilities will be promptly addressed.

Credits

License

The Laravel framework is open-sourced software licensed under the MIT license.

You might also like...
Laravel Client REST Camunda API

About Laravel Laravel is a web application framework with expressive, elegant syntax. We believe development must be an enjoyable and creative experie

Platform to get informations about any country.
Platform to get informations about any country.

OpenCountries This project is a web platform developped in PHP implementing the RestCountries API. The objective of the project is to get informations

a tool to get Facebook data, and some Facebook bots, and extra tools found on Facebook Toolkit ++.
a tool to get Facebook data, and some Facebook bots, and extra tools found on Facebook Toolkit ++.

FACEBOOK TOOLKIT a tool to get Facebook data, and some Facebook bots, and extra tools found on Facebook Toolkit ++. Graph API Facebook. Made with ❤️ b

Facebook SDK for PHP (v6) - allows you to access the Facebook Platform from your PHP app

Facebook SDK for PHP (v6) This repository contains the open source PHP SDK that allows you to access the Facebook Platform from your PHP app. Installa

Simple Client for Airtable API
Simple Client for Airtable API

Airtable Client Bundle (Work In Progress) The Airtable Client bundle is a Symfony bundle that attempts to make the Airtable API easier to use. Retriev

The efficient and elegant, PSR-7 compliant JSON:API 1.1 client library for PHP

Woohoo Labs. Yang Woohoo Labs. Yang is a PHP framework which helps you to communicate with JSON:API servers more easily. Table of Contents Introductio

PHP unofficial client to CryptoPanic.com API

PHP unofficial client to CryptoPanic.com API CryptoPanic.com is a news aggregator platform indicating impact on price and market for traders and crypt

Tuya Api PHP Client

Tuya Api PHP Client This is a simple php client to interact with devices that support the tuya api over the cloud. Requirements I believe all is neede

This is the PHP ApiDQ API client

ApiDQ API PHP Client This is the PHP ApiDQ API client. This library allows using of the actual API version. You can find more info in the documentatio

Releases(v1.0.0)
Owner
Be Duc Tai
Web Developer
Be Duc Tai
Laravel api tool kit is a set of tools that will help you to build a fast and well-organized API using laravel best practices.

Laravel API tool kit and best API practices Laravel api tool kit is a set of tools that will help you to build a fast and well-organized API using lar

Ahmed Esa 106 Nov 22, 2022
This bundle provides tools to build a complete GraphQL server in your Symfony App.

OverblogGraphQLBundle This Symfony bundle provides integration of GraphQL using webonyx/graphql-php and GraphQL Relay. It also supports: batching with

Webedia - Overblog 720 Dec 25, 2022
A RESTful and extendable Backend as a Service that provides instant backend to develop sites and apps faster, with dead-simple integration for JavaScript, iOS, Android and more.

Welcome to hook ![Gitter](https://badges.gitter.im/Join Chat.svg) hook is a RESTful, extendable Backend as a Service that provides instant backend to

doubleleft 762 Dec 30, 2022
Domain-Driven Design Maker for Symfony apps

Domain-Driven Design Maker for Symfony applications This bundle assumes you are using https://github.com/yceruto/symfony-ddd-skeleton architecture or

Yonel Ceruto 8 Aug 31, 2022
Simple PHP API client for tube-hosting.com rest API

Tube-Hosting API PHP client Explanation This PHP library is a simple api wrapper/client for the tube-hosting.com api. It is based on the provided docu

null 4 Sep 12, 2022
Chargebee API PHP Client (for API version 2 and Product Catalog version 2.0)

chargebee-php-sdk Overview This package provides an API client for Chargebee subscription management services. It connects to Chargebee REST APIs for

GLOBALIS media systems 8 Mar 8, 2022
Zoho CRM API SDK is a wrapper to Zoho CRM APIs. By using this sdk, user can build the application with ease

Archival Notice: This SDK is archived. You can continue to use it, but no new features or support requests will be accepted. For the new version, refe

null 81 Nov 4, 2022
API documentation API SCB EASY APP

SCB-API-EASY V3.0 API documentation SIAM COMMERCIAL BANK PUBLIC COMPANY LTD. API SCB Easy V3 endpoint = https://fasteasy.scbeasy.link 1.0. Get balance

SCB API Esay team 2 Sep 28, 2021
LaraBooks API - Simple API for iOS SwiftUI app tests.

About Laravel Laravel is a web application framework with expressive, elegant syntax. We believe development must be an enjoyable and creative experie

Konrad Podrygalski 1 Nov 13, 2021
A basic, opinionated, Laravel Api Client

Laravel Api Client Installation Install the pacakage via composer composer require antonioprimera/laravel-api-client If you want to use pre-configured

Antonio Primera 2 Nov 3, 2022