Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Route::get('listemls/{path}', function($path) {
- $contents = collect(Storage::cloud()->listContents($path, false));
- $id = $contents->where('filename', '=', 'Enviados')->first()['id'];
- $contents = collect(Storage::cloud()->listContents($id, true));
- return $contents->where('extension','=','eml');
- //foreach(obj o : contents){
- //lamada a la api raw con los ids de los emls
- //decodear el raw
- //coger lo que quiero del raw
- //}
- });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement