generationtux/laravel-marketo-rest-api

Laravel Marketo Rest Api

v0.1.2 2016-11-22 21:07 UTC

This package is not auto-updated.

Last update: 2024-10-26 20:04:28 UTC


README

Installation

composer require generationtux/laravel-marketo-rest-api

Add the service provide and facade to your config/app.php

// For Laravel

// Service Provider
'providers' => [
    ...
    GenTux\Artisan\Marketo\LaravelServiceProvider::class,
];

// Facade
'aliases' => [
    'Marketo' => GenTux\Artisan\Marketo\MarketoFacade::class,
];


// For Lumen

// app.php
$app->register(GenTux\Artisan\Marketo\LumenServiceProvider::class);

Publish the config file

php artisan vendor:publish --provider="GenTux\Artisan\Marketo\MarketoServiceProvider"

If you're using Lumen and do not have access to publish a config, use the code below fo config and name it marketo.php:

<?php

return [
    'auth' => [
        'api_url' => env('MARKETO_API_URL'),
        'client_id' => env('MARKETO_CLIENT_ID'),
        'client_secret' => env('MARKETO_CLIENT_SECRET'),
    ]
];