Skip to content
This repository has been archived by the owner on Aug 1, 2023. It is now read-only.

Issue with controller #6

Open
craigvc opened this issue Jan 20, 2019 · 1 comment
Open

Issue with controller #6

craigvc opened this issue Jan 20, 2019 · 1 comment

Comments

@craigvc
Copy link

craigvc commented Jan 20, 2019

I am testing out your library with Laravel.
This is the controller i made
`<?php

namespace App\Http\Controllers\API\Integrations\Wrike;

use Illuminate\Http\Request;
use App\Http\Controllers\Controller;

use \GuzzleHttp\Client;
use \GuzzleHttp\Exception\ConnectException;
use \GuzzleHttp\Exception\ClientException;

use Zibios\WrikePhpSdk\ApiFactory;

use Zibios\WrikePhpLibrary\ApiInterface;
use Zibios\WrikePhpLibrary\Client\ClientInterface;
use Zibios\WrikePhpLibrary\Resource\AccountResource;
use Zibios\WrikePhpLibrary\Resource\AttachmentResource;
use Zibios\WrikePhpLibrary\Resource\ColorResource;
use Zibios\WrikePhpLibrary\Resource\CommentResource;
use Zibios\WrikePhpLibrary\Resource\ContactResource;
use Zibios\WrikePhpLibrary\Resource\CustomFieldResource;
use Zibios\WrikePhpLibrary\Resource\DependencyResource;
use Zibios\WrikePhpLibrary\Resource\FolderResource;
use Zibios\WrikePhpLibrary\Resource\GroupResource;
use Zibios\WrikePhpLibrary\Resource\IdResource;
use Zibios\WrikePhpLibrary\Resource\InvitationResource;
use Zibios\WrikePhpLibrary\Resource\TaskResource;
//use Zibios\WrikePhpLibrary\Resource\TimelogCategoryResource;
use Zibios\WrikePhpLibrary\Resource\TimelogResource;
use Zibios\WrikePhpLibrary\Resource\UserResource;
use Zibios\WrikePhpLibrary\Resource\VersionResource;
use Zibios\WrikePhpLibrary\Resource\WorkflowResource;
use Zibios\WrikePhpLibrary\Transformer\ApiExceptionTransformerInterface;
use Zibios\WrikePhpLibrary\Transformer\ResponseTransformerInterface;

class WrikeControllerTest extends Controller
{

public function testing(){
$token = 'xxx';

$api = ApiFactory::create($token);
$api->folders()->getAll();

}

}`
But i get this error on calling it
"Call to undefined method Zibios\WrikePhpLibrary\Api::folders()"
Can you advise where i am going wrong? Thanks!!

@zibios
Copy link
Owner

zibios commented Jan 28, 2019

Hi,
I apologize for the delay in the response, I have noticed your info just now. I will try to check and fix this ASAP. Probably tomorrow. Thank you for the information.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants