Code Monkey home page Code Monkey logo

Comments (6)

omniphx avatar omniphx commented on May 19, 2024

Hi @tabirkeland,

I would love to eventually incorporate the Streaming API into this project. However, lately I've been a little pre-occupied with some other projects. So not sure when my timeframe would be to have this developed.

If you'd like, feel free to give it a crack and I'll be happy to provide some guidance. Forrest is leveraging the Guzzle library for HTTP requests. Looks like they have some good documentation on using streaming request: http://docs.guzzlephp.org/en/latest/request-options.html#stream

from forrest.

tabirkeland avatar tabirkeland commented on May 19, 2024

@omniphx Sounds great, I have been busy as well so if I do have time, I would love to take a swing at it.

Thanks for your reply.

On a side note, I utilize your UserPassword flow and a great way to keep a application authenticated is by using middleware as such:

<?php

namespace App\Http\Middleware;

use Forrest;
use Closure;

class ValidateSalesforceToken
{
    /**
     * Handle an incoming request.
     *
     * @param  \Illuminate\Http\Request  $request
     * @param  \Closure  $next
     * @return mixed
     */
    public function handle($request, Closure $next)
    {
        // Look for the salesforce api session tokens
        if (!$request->session()->has('forrest_token')) {
            // Authenticate
            Forrest::authenticate();
        }

        return $next($request);
    }
}

from forrest.

omniphx avatar omniphx commented on May 19, 2024

Me gusta! 👍

from forrest.

tabirkeland avatar tabirkeland commented on May 19, 2024

Just an FYI for what the streaming API can and cannot do:

https://resources.docs.salesforce.com/sfdc/pdf/api_streaming.pdf

Search for Unsupported PushTopic Queries

from forrest.

tabirkeland avatar tabirkeland commented on May 19, 2024

No longer an issue, possibly an enhancement in the future.

from forrest.

formigone avatar formigone commented on May 19, 2024

@omniphx any updates?

from forrest.

Related Issues (20)

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.