- Откройте Excel и включите отображение вкладки «Разработчик»
- Перейдите в редактор Visual Basic (в ленте Разработчик > Visual Basic).
- Откройте список ссылок: в меню Tools > References...
- Отметьте пункты «Microsoft Scripting Runtime» и «Microsoft VBScript Regular Expressions 5.5».
- Нажмите OK.
- Откройте модуль Лист1.
- Скопируйте код из примера в модуль.
- Замените значение константы API_KEY с CHANGE_ME на ваш API-ключ.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/bin/env python | |
| # -*- coding: utf-8 -*- | |
| """Source: https://github.com/python-telegram-bot/python-telegram-bot/blob/master/examples/echobot2.py""" | |
| from telegram.ext import Updater, CommandHandler, MessageHandler, Filters | |
| import logging | |
| # Enable logging | |
| logging.basicConfig(format='%(asctime)s - %(name)s - %(levelname)s - %(message)s', |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <html> | |
| <head> | |
| <title>API Example</title> | |
| <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> | |
| <script src="http://ajax.googleapis.com/ajax/libs/jquery/2.1.1/jquery.min.js"></script> | |
| <script type="text/javascript"> | |
| var accessToken = "<your agent's client access token>"; | |
| var baseUrl = "https://api.api.ai/v1/"; |
Portable
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /* Datatypes (Simple & Complex): | |
| *Datatypes are classified as either simple or complex. Simple datatypes | |
| *include numbers, string, Boolean, NaN, undefined, and null. They are | |
| *immutable they don't hold a value, They return simple values and don't | |
| *change the original value. They only take up a limited amount of space. They are | |
| * stored by value. | |
| *Complex datatypes consist of arrays, objects, and funtions. | |
| *They aggregate other values. They hold an indefinite space od memory. They are | |
| *copied by value. | |
| * Number |
NewerOlder