Advertisement
claukiller

emls

Apr 23rd, 2018
129
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.45 KB | None | 0 0
  1. Route::get('listemls/{path}', function($path) {
  2. $contents = collect(Storage::cloud()->listContents($path, false));
  3. $id = $contents->where('filename', '=', 'Enviados')->first()['id'];
  4. $contents = collect(Storage::cloud()->listContents($id, true));
  5. return $contents->where('extension','=','eml');
  6.  
  7. //foreach(obj o : contents){
  8. //lamada a la api raw con los ids de los emls
  9. //decodear el raw
  10. //coger lo que quiero del raw
  11. //}
  12.  
  13.  
  14. });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement