Open hoseinmoradi opened 2 years ago
Hey there, thanks for raising that issue!
did you create a config.php and set your AUTH string via define("GOOGLE_ALERTS_AUTHSTRING", "YOU_AUTH_STRING_GOES_HERE")
and then executed the example.php script to make sure the example works before including it in your project?
appreciate it!
I'm direct assigned to function auth string
function decodeCookies() { return base64_decode("W3sia2V5IjoiU0lEIiwidmFs***"); }
On Wed, Dec 15, 2021 at 1:38 PM Florian @.***> wrote:
Hey there, thanks for raising that issue!
did you create a config.php and set your AUTH string via define("GOOGLE_ALERTS_AUTHSTRING", "YOU_AUTH_STRING_GOES_HERE") and then executed the example.php script to make sure the example works before including it in your project?
appreciate it!
— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/Trivo25/google-alerts-api-php/issues/1#issuecomment-994618096, or unsubscribe https://github.com/notifications/unsubscribe-auth/AJFYBWWLJC37VHQAYPROY7DURBSH7ANCNFSM5KDES2DQ . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.
Hi Trivo I had a problem while I executed
{ "message": "Undefined variable $state", "exception": "ErrorException", "file": "/Users/hoseinmoradi/Documents/projects/laravel/shahed-git/app/Services/GoogleAlert.php", "line": 191, "trace": [ { "file": "/Users/hoseinmoradi/Documents/projects/laravel/shahed-git/app/Services/GoogleAlert.php", "line": 191, "function": "handleError", "class": "Illuminate\\Foundation\\Bootstrap\\HandleExceptions", "type": "->" }, { "file": "/Users/hoseinmoradi/Documents/projects/laravel/shahed-git/app/Services/GoogleAlert.php", "line": 77, "function": "getWindowState", "class": "App\\Services\\GoogleAlert", "type": "->" }, { "file": "/Users/hoseinmoradi/Documents/projects/laravel/shahed-git/app/Http/Controllers/LayerController.php", "line": 199, "function": "create", "class": "App\\Services\\GoogleAlert", "type": "->" }, { "file": "/Users/hoseinmoradi/Documents/projects/laravel/shahed-git/vendor/laravel/framework/src/Illuminate/Routing/Controller.php", "line": 54, "function": "feed", "class": "App\\Http\\Controllers\\LayerController", "type": "->" }, { "file": "/Users/hoseinmoradi/Documents/projects/laravel/shahed-git/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php", "line": 45, "function": "callAction", "class": "Illuminate\\Routing\\Controller", "type": "->" }, { "file": "/Users/hoseinmoradi/Documents/projects/laravel/shahed-git/vendor/laravel/framework/src/Illuminate/Routing/Route.php", "line": 262, "function": "dispatch", "class": "Illuminate\\Routing\\ControllerDispatcher", "type": "->" }, { "file": "/Users/hoseinmoradi/Documents/projects/laravel/shahed-git/vendor/laravel/framework/src/Illuminate/Routing/Route.php", "line": 205, "function": "runController", "class": "Illuminate\\Routing\\Route", "type": "->" }, { "file": "/Users/hoseinmoradi/Documents/projects/laravel/shahed-git/vendor/laravel/framework/src/Illuminate/Routing/Router.php", "line": 695, "function": "run", "class": "Illuminate\\Routing\\Route", "type": "->" }, { "file": "/Users/hoseinmoradi/Documents/projects/laravel/shahed-git/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php", "line": 128, "function": "Illuminate\\Routing\\{closure}", "class": "Illuminate\\Routing\\Router", "type": "->" }, { "file": "/Users/hoseinmoradi/Documents/projects/laravel/shahed-git/app/Http/Middleware/ForceJsonResponse.php", "line": 20, "function": "Illuminate\\Pipeline\\{closure}", "class": "Illuminate\\Pipeline\\Pipeline", "type": "->" }, { "file": "/Users/hoseinmoradi/Documents/projects/laravel/shahed-git/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php", "line": 167, "function": "handle", "class": "App\\Http\\Middleware\\ForceJsonResponse", "type": "->" }, { "file": "/Users/hoseinmoradi/Documents/projects/laravel/shahed-git/app/Http/Middleware/Cors.php", "line": 16, "function": "Illuminate\\Pipeline\\{closure}", "class": "Illuminate\\Pipeline\\Pipeline", "type": "->" }, { "file": "/Users/hoseinmoradi/Documents/projects/laravel/shahed-git/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php", "line": 167, "function": "handle", "class": "App\\Http\\Middleware\\CORS", "type": "->" }, { "file": "/Users/hoseinmoradi/Documents/projects/laravel/shahed-git/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php", "line": 50, "function": "Illuminate\\Pipeline\\{closure}", "class": "Illuminate\\Pipeline\\Pipeline", "type": "->" }, { "file": "/Users/hoseinmoradi/Documents/projects/laravel/shahed-git/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php", "line": 167, "function": "handle", "class": "Illuminate\\Routing\\Middleware\\SubstituteBindings", "type": "->" }, { "file": "/Users/hoseinmoradi/Documents/projects/laravel/shahed-git/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php", "line": 127, "function": "Illuminate\\Pipeline\\{closure}", "class": "Illuminate\\Pipeline\\Pipeline", "type": "->" }, { "file": "/Users/hoseinmoradi/Documents/projects/laravel/shahed-git/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php", "line": 103, "function": "handleRequest", "class": "Illuminate\\Routing\\Middleware\\ThrottleRequests", "type": "->" }, { "file": "/Users/hoseinmoradi/Documents/projects/laravel/shahed-git/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php", "line": 55, "function": "handleRequestUsingNamedLimiter", "class": "Illuminate\\Routing\\Middleware\\ThrottleRequests", "type": "->" }, { "file": "/Users/hoseinmoradi/Documents/projects/laravel/shahed-git/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php", "line": 167, "function": "handle", "class": "Illuminate\\Routing\\Middleware\\ThrottleRequests", "type": "->" }, { "file": "/Users/hoseinmoradi/Documents/projects/laravel/shahed-git/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php", "line": 103, "function": "Illuminate\\Pipeline\\{closure}", "class": "Illuminate\\Pipeline\\Pipeline", "type": "->" }, { "file": "/Users/hoseinmoradi/Documents/projects/laravel/shahed-git/vendor/laravel/framework/src/Illuminate/Routing/Router.php", "line": 697, "function": "then", "class": "Illuminate\\Pipeline\\Pipeline", "type": "->" }, { "file": "/Users/hoseinmoradi/Documents/projects/laravel/shahed-git/vendor/laravel/framework/src/Illuminate/Routing/Router.php", "line": 672, "function": "runRouteWithinStack", "class": "Illuminate\\Routing\\Router", "type": "->" }, { "file": "/Users/hoseinmoradi/Documents/projects/laravel/shahed-git/vendor/laravel/framework/src/Illuminate/Routing/Router.php", "line": 636, "function": "runRoute", "class": "Illuminate\\Routing\\Router", "type": "->" }, { "file": "/Users/hoseinmoradi/Documents/projects/laravel/shahed-git/vendor/laravel/framework/src/Illuminate/Routing/Router.php", "line": 625, "function": "dispatchToRoute", "class": "Illuminate\\Routing\\Router", "type": "->" }, { "file": "/Users/hoseinmoradi/Documents/projects/laravel/shahed-git/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php", "line": 167, "function": "dispatch", "class": "Illuminate\\Routing\\Router", "type": "->" }, { "file": "/Users/hoseinmoradi/Documents/projects/laravel/shahed-git/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php", "line": 128, "function": "Illuminate\\Foundation\\Http\\{closure}", "class": "Illuminate\\Foundation\\Http\\Kernel", "type": "->" }, { "file": "/Users/hoseinmoradi/Documents/projects/laravel/shahed-git/app/Http/Middleware/ForceJsonResponse.php", "line": 20, "function": "Illuminate\\Pipeline\\{closure}", "class": "Illuminate\\Pipeline\\Pipeline", "type": "->" }, { "file": "/Users/hoseinmoradi/Documents/projects/laravel/shahed-git/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php", "line": 167, "function": "handle", "class": "App\\Http\\Middleware\\ForceJsonResponse", "type": "->" }, { "file": "/Users/hoseinmoradi/Documents/projects/laravel/shahed-git/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php", "line": 21, "function": "Illuminate\\Pipeline\\{closure}", "class": "Illuminate\\Pipeline\\Pipeline", "type": "->" }, { "file": "/Users/hoseinmoradi/Documents/projects/laravel/shahed-git/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php", "line": 31, "function": "handle", "class": "Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest", "type": "->" }, { "file": "/Users/hoseinmoradi/Documents/projects/laravel/shahed-git/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php", "line": 167, "function": "handle", "class": "Illuminate\\Foundation\\Http\\Middleware\\ConvertEmptyStringsToNull", "type": "->" }, { "file": "/Users/hoseinmoradi/Documents/projects/laravel/shahed-git/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php", "line": 21, "function": "Illuminate\\Pipeline\\{closure}", "class": "Illuminate\\Pipeline\\Pipeline", "type": "->" }, { "file": "/Users/hoseinmoradi/Documents/projects/laravel/shahed-git/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php", "line": 40, "function": "handle", "class": "Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest", "type": "->" }, { "file": "/Users/hoseinmoradi/Documents/projects/laravel/shahed-git/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php", "line": 167, "function": "handle", "class": "Illuminate\\Foundation\\Http\\Middleware\\TrimStrings", "type": "->" }, { "file": "/Users/hoseinmoradi/Documents/projects/laravel/shahed-git/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php", "line": 27, "function": "Illuminate\\Pipeline\\{closure}", "class": "Illuminate\\Pipeline\\Pipeline", "type": "->" }, { "file": "/Users/hoseinmoradi/Documents/projects/laravel/shahed-git/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php", "line": 167, "function": "handle", "class": "Illuminate\\Foundation\\Http\\Middleware\\ValidatePostSize", "type": "->" }, { "file": "/Users/hoseinmoradi/Documents/projects/laravel/shahed-git/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php", "line": 86, "function": "Illuminate\\Pipeline\\{closure}", "class": "Illuminate\\Pipeline\\Pipeline", "type": "->" }, { "file": "/Users/hoseinmoradi/Documents/projects/laravel/shahed-git/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php", "line": 167, "function": "handle", "class": "Illuminate\\Foundation\\Http\\Middleware\\PreventRequestsDuringMaintenance", "type": "->" }, { "file": "/Users/hoseinmoradi/Documents/projects/laravel/shahed-git/vendor/fruitcake/laravel-cors/src/HandleCors.php", "line": 52, "function": "Illuminate\\Pipeline\\{closure}", "class": "Illuminate\\Pipeline\\Pipeline", "type": "->" }, { "file": "/Users/hoseinmoradi/Documents/projects/laravel/shahed-git/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php", "line": 167, "function": "handle", "class": "Fruitcake\\Cors\\HandleCors", "type": "->" }, { "file": "/Users/hoseinmoradi/Documents/projects/laravel/shahed-git/vendor/fideloper/proxy/src/TrustProxies.php", "line": 57, "function": "Illuminate\\Pipeline\\{closure}", "class": "Illuminate\\Pipeline\\Pipeline", "type": "->" }, { "file": "/Users/hoseinmoradi/Documents/projects/laravel/shahed-git/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php", "line": 167, "function": "handle", "class": "Fideloper\\Proxy\\TrustProxies", "type": "->" }, { "file": "/Users/hoseinmoradi/Documents/projects/laravel/shahed-git/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php", "line": 103, "function": "Illuminate\\Pipeline\\{closure}", "class": "Illuminate\\Pipeline\\Pipeline", "type": "->" }, { "file": "/Users/hoseinmoradi/Documents/projects/laravel/shahed-git/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php", "line": 142, "function": "then", "class": "Illuminate\\Pipeline\\Pipeline", "type": "->" }, { "file": "/Users/hoseinmoradi/Documents/projects/laravel/shahed-git/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php", "line": 111, "function": "sendRequestThroughRouter", "class": "Illuminate\\Foundation\\Http\\Kernel", "type": "->" }, { "file": "/Users/hoseinmoradi/Documents/projects/laravel/shahed-git/public/index.php", "line": 52, "function": "handle", "class": "Illuminate\\Foundation\\Http\\Kernel", "type": "->" }, { "file": "/Users/hoseinmoradi/Documents/projects/laravel/shahed-git/server.php", "line": 21, "function": "require_once" } ] }