承接 hardworm/webmaster.api 相关项目开发

从需求分析到上线部署,全程专人跟进,保证项目质量与交付效率

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

hardworm/webmaster.api

最新稳定版本:1.4.0

Composer 安装命令:

composer require hardworm/webmaster.api

包简介

Yandex Webmaster Api v4.1 library

README 文档

README

Installation

Composer

add into composer.json

{
    "require": {
        ...
        "hardworm/webmaster.api": "1.4.*"
        ...
    }
}

or

php composer.phar require hardworm/webmaster.api "dev-master"

Also required prior to placing the package on packagist.org

    ...
    "repositories": [
        {
            "type": "vcs",
            "url": "https://github.com/hardworm/webmaster.api"
        }
    ]
    ...

Manual

Clone repository and require webmasterApi.php

Usage

How to use example:

  1. Before use this code go to https://oauth.yandex.ru/client/new and add new client

  2. Create file "example/config.php" by copy "config.example.php". Add client ID and secret code here to use example

How to use webmasterApi class:

  1. Add client on https://oauth.yandex.ru/client/new page. Don't forget to set up correct return url

  2. For test you can get temporary Access Token (read comments to method webmasterApi::getAccessToken )

  3. If you want to get correct Access Token, you must create authorization code.

    1. Read doc on https://tech.yandex.ru/oauth/doc/dg/reference/web-client-docpage/
    2. Locate your client to https://oauth.yandex.ru/authorize?response_type=code&client_id=[yourclient_id]
    3. Use static method getAccessToken to get access token
    4. Create webmasterApi object with static method webmasterApi::initApi

You can see example/.auth.php to see how it working

  1. Enjoy!

Methods

  • addHost
  • addOriginalText
  • addQueueRecrawl
  • addSitemap
  • checkVerification
  • curlOpts
  • dataToString
  • delete
  • deleteHost
  • deleteOriginalText
  • deleteSitemap
  • errorCritical
  • get
  • getAccessToken
  • getApiUrl
  • getDiagnostics
  • getHostInfo
  • getHostOwners
  • getHostSitemaps
  • getHostSummary
  • getHostUserSitemaps
  • getHosts
  • getIndexingHistory
  • getIndexingSamples
  • getOriginalTexts
  • getPopularQueries
  • getQueueRecrawl
  • getQuotaRecrawl
  • getSearchUrlHistory
  • getSearchUrlSamples
  • getSearchUrlEventHistory
  • getSearchUrlEventHistorySamples
  • getSqiHistory
  • getStateRecrawlQueue
  • getUserID
  • initApi
  • post
  • verifyHost

统计信息

  • 总下载量: 9.77k
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 10
  • 点击次数: 1
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 10
  • Watchers: 2
  • Forks: 30
  • 开发语言: PHP

其他信息

  • 授权协议: MPL-2.0
  • 更新时间: 2018-09-07

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固