Comments (6)
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.
@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.
Me gusta! 👍
from forrest.
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.
No longer an issue, possibly an enhancement in the future.
from forrest.
@omniphx any updates?
from forrest.
Related Issues (20)
- Where do I put the refresh_token? No refresh token stored in current session. HOT 6
- Error: "invalid_grant". "audicence is invalid" HOT 2
- Supplied key param cannot be coerced into a private key HOT 1
- Can I Export Salesforce data for example some reports onto a page in my laravel vuejs application ? HOT 1
- Session store not set on request. but storage type:cache is already seted HOT 1
- How to check if record update was succesful?
- Custom and Managed Fields not showing HOT 3
- Cases Data Display in application
- SF Login ok via Command but not from Controller
- cURL error 6: Could not resolve host: login.salesforce.com – randomly HOT 2
- Storing integer IDs in a Salesforce Custom Field with Number type HOT 1
- Argument #4 ($keyId) must be of type ?string, HOT 4
- Class "App\Http\Controllers\Forrest" not found - Question HOT 2
- Reusing the access/refresh tokens HOT 5
- Cannot access Guzzle response despite docs saying you can
- Authentication HOT 3
- authenticate route throws an error HOT 1
- Any way initialising an instance by providing a Session ID from an external source?
- UserPassword Authenticate not making use of token store. HOT 1
- No Token available after some idle time HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from forrest.