GithubHelp home page GithubHelp logo

aleksandrboichuk / test-zendesk-api Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 0.0 12 KB

Completed a test task on the use Zendesk API for making CSV file of tickets

Dockerfile 4.70% PHP 95.30%
docker php nginx x-debug zendesk-api composer git

test-zendesk-api's Introduction

Test task

Assignment:

Install composer (package manager). Using composer, install the Guzzle library. Connect autoloader through composer. Write a script using OOP principles that will store all Tickets (provided you have more than 10,000 tickets) using an API (use the Guzzle library) from the Zendesk API, as well as their main entities. The result should be the recording of these tickets in a csv fil

Done:

  • Configured (and successfully started) 2 Docker containers:
    • php. Inside the container, php8.1-fpm (using the image), the package manager composer, the version control system git, and the code debugging tool xDebug were installed.
    • nginx. Installed nginx using the nginx:latest image from DockerHub
  • Installed Guzzle library in php container using composer package manager and configured autoload in composer.json file.
  • In the src directory, according to OOP principles, all the necessary classes and their methods have been created to perform the assigned task.
  • In the file index.php, autoload.php is imported and the main class App is initialized. With the help of its method, the execution of all the necessary actions to generate and download a csv file with the necessary data begins.

To execute the script, you need to raise the containers and go to the link http://localhost/index.php. After executing the script, the file tickets.csv will be automatically downloaded, which will contain the result of its execution.

test-zendesk-api's People

Contributors

aleksandrboichuk avatar

Watchers

 avatar

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.