Code Monkey home page Code Monkey logo

typeform's Introduction

Typeform API Client

A strongly-typed interface to the complete Typeform API.

composer require adamaveray/typeform

Setup

  1. Install the library with Composer (composer require adamaveray/typeform).
  2. Generate a Typeform personal access token.

Usage

To interact with the Typeform API, create a new instance of the ApiClient class and pass in a personal access token:

$apiClient = new \AdamAveray\Typeform\ApiClient('{access-token}');

See the following sections for full documentation:


MIT Licence

typeform's People

Contributors

adamaveray avatar nakira avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar  avatar

Forkers

nakira victord11

typeform's Issues

Problem with method getWebhooks()

Hello @adamaveray!
When I try to call the method "getWebhooks" I get an error message

AdamAveray\Typeform\Utils\Refs\Ref::__construct(): Argument #2 ($data) must be of type array, string given, called in /var/www/app/vendor/adamaveray/typeform/src/Models/Forms/Webhook.php on line 37

  at vendor/adamaveray/typeform/src/Utils/Refs/Ref.php:25
     21▕   /**
     22▕    * @psalm-param class-string<T> $className
     23▕    * @param array{ href: string } $data
     24▕    */
  ➜  25▕   public function __construct(string $className, array $data)
     26▕   {
     27▕     $this->className = $className;
     28▕     $this->href = $data['href'];
     29▕   }

Can you fix this problem? Thanks for the Wrapper Library 💙💛

Form don't have a welcome screen then method GetForm crash

Hello @adamaveray!
Some forms do not have a welcome screen, and then the method(GetForm) crashes :(

Undefined array key "welcome_screens" {"userId":11111,"exception":"[object] (ErrorException(code: 0): Undefined array key \"welcome_screens\" at /var/www/app/vendor/adamaveray/typeform/src/Models/Forms/Form.php:59)

[stacktrace] 
#0 /var/www/app/vendor/laravel/framework/src/Illuminate/Foundation/Bootstrap/HandleExceptions.php(266): Illuminate\\Foundation\\Bootstrap\\HandleExceptions->handleError(2, 'Undefined array...', '/var/www/app/ve...', 59) 
#1 /var/www/app/vendor/adamaveray/typeform/src/Models/Forms/Form.php(59): Illuminate\\Foundation\\Bootstrap\\HandleExceptions->Illuminate\\Foundation\\Bootstrap\\{closure}(2, 'Undefined array...', '/var/www/app/ve...', 59) 
#2 /var/www/app/vendor/adamaveray/typeform/src/ApiClient.php(295): AdamAveray\\Typeform\\Models\\Forms\\Form->__construct(Array) 
#3 /var/www/app/app/Services/Api/Typeform/TypeformFormsService.php(31): AdamAveray\\Typeform\\ApiClient->getForm('******') 
#4 /var/www/app/app/Jobs/Api/Typeform/SyncForm.php(39): Softserve\\Services\\Api\\Typeform\\TypeformFormsService->syncForms(Object(Softserve\\Entities\\Typeform\\Workspace), 200)

Can you fix this problem? Thanks for the Wrapper Library 💙💛

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.