Code Monkey home page Code Monkey logo

laravel-search-console's People

Contributors

madeitbelgium avatar schulzefelix avatar scrutinizer-auto-fixer avatar spekulatius avatar stylecibot avatar vesper8 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

laravel-search-console's Issues

Service account

Hello,

Does the service account option work with searchAnalyticsQuery I can seem to list all sites but its not showing as authenticated.

Hello schulzefelix, Config

I have the service_account.json file.

Into: Config/search-console, At: Connections i get path of file json.

And have error:
Unable to read the credential file specified by GOOGLE_APPLICATION_CREDENTIALS: file laravel-search-console does not exist.

I have added account to google webmaster tool ?

Please help me, thank you !

how can i get $token?

$data = SearchConsole::setAccessToken($token)->setQuotaUser('uniqueQuotaUserString')
->searchAnalyticsQuery(
'https://www.example.com/',
Period::create(Carbon::now()->subDays(30), Carbon::now()->subDays(2)),
['query', 'page', 'country', 'device', 'date'],
[['dimension' => 'query', 'operator' => 'notContains', 'expression' => 'cheesecake']],
1000,
'web',
'all',
'auto'
);

ErrorException
PHP 8.1.22
9.52.16
Undefined variable $token

how can i get $token?

how can we set the datastate using this package?

I want to change the datastate to all as explained here https://searchengineland.com/google-search-console-api-gains-fresh-data-more-344552

In order to retrieve fresh data that is less than 1 day old.

The current default does not return this fresh data when I use this package.

I can see that there's a setDatastate function on both Google_Service_Webmasters_SearchAnalyticsQueryRequest and Google_Service_SearchConsole_SearchAnalyticsQueryRequest but I can't figure out how to change it using this package.

This is my current code

        $site = 'sc-domain:mydomain.com';

        $searchConsole = app(SearchConsole::class);

        putenv(sprintf('GOOGLE_APPLICATION_CREDENTIALS=%s', config('search-console.connections.service_account.application_credentials')));

        $period = Period::create(Carbon::now()->subDays(30), Carbon::now());

        $dimensions = [
            'date',
        ];

        $performanceData = $searchConsole->searchAnalyticsQuery($site, $period, $dimensions);

Any help appreciated

how to get token?

$sites = SearchConsole::setAccessToken($token)->listSites();
how to get $token

Sorting

Hello @schulzefelix

I was wondering if you aware of any options/ways to sort the returned information. I'd like to ensure not asking large chunks of data only to sort them out on my end. I've not been able to find anything in the Googel docs. Any suggestions or ideas?

Viele Grüße,
Peter

file_exists should be an absolute path

Hi. First of all, thank you for this awesome package!

I am using with a GOOGLE_AUTH_TYPE=service_account, so I need to put my credentials as a .json.

The package must be modified so it works under all circumstances: commands, test, and calling from a route.

For instance, if we have:
GOOGLE_APPLICATION_CREDENTIALS=search-console-credentials.json

When calling via a controller web this would fail, because file_exists in guardAgainstInvalidConfiguration is checking relative to public path.

We can use helper function base_path() to grab the correct file.

Laravel 6 support

Hey, do you plan to add support for Laravel 6?
Would be awesome!
Thank you :)

Using $this when not in object context

Hi, @schulzefelix

Thank you for supplying this awesome package!

after getting a token from google, get this error:

Using $this when not in object context
public function setAccessToken($accessToken)

    {

        if (is_array($accessToken)) {

            $accessToken = trim(json_encode($accessToken));

        }

 

        **$this->client->setAccessToken($accessToken);**

 

        $this->client->getGoogleClient()->getCache()->clear();

 

        return $this;

    }
`

$token is a string. PHP7.4+Laravel 8+laravel-search-console 1.7.1

any suggestion?! thank you.

List Sitemaps

Hey, first at all: Thank you for your great package. It's very useful for my application.

But I'm having problems to list all sitemaps of a specific URL.
Is it possible with your search-console package to crawl this informations?

Thank you! :)

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.