pepipost提供的官方python库,用于使用web api v2发送电子邮件
pepipost的Python项目详细描述
官方python库:snake:forPepipost
这个sdk包含一些方法,可以轻松地与pepipost电子邮件发送api交互,以便在几秒钟内发送电子邮件。
我们正在努力使我们的图书馆成为一个社区驱动的图书馆。为了帮助我们按照正确的顺序构建正确的东西,我们会请求您通过共享评论、创建新问题或请求来帮助我们。
我们欢迎对这个图书馆作出任何贡献。
此库提供的最新2.5.0版本与最新的PepiPost v2.0 API完全兼容。
有关此库的任何更新,请检查[发行版]
目录
Installation
There are two ways of installing the library for Pepipost either you can use
^{
OR
^{
Below are the steps inorder to install the library
Prerequisites
- Python (2 >=2.7.9 or 3 >= 3.4)
- Python IDE (we are using Pycharm)
- python包
- 鼻子
- Jsonpickle
- 请求
- 缓存控制
- python dateutil
pip的安装可以从here完成。
我们建议使用pip依赖项管理器来安装sdk中的requirements.txt
文件中提到的所有依赖项。
定义环境变量。
python和pip应该在您的路径中定义。
使用检查
pip --version
-->;将显示安装的pip依赖项管理器的版本。python --version
-->;将显示安装的python版本如果您使用的是python 2,则它应该是>;=2.7.1;否则,如果您使用的是python 3,则它可以是>;=3.4。
使用命令行导航到目录
cd pepipost_python
Quickstart
Using SDK from Github repository, Run the below command to download the requirements
^{
} OR
Using PIP dependency manager download our official library directly from PIP
Run below Command inorder to download Pepipost library.
^{
} Open Project in an IDE
Open up a Python IDE like PyCharm. The basic workflow presented here is also applicable if you prefer using a different editor or IDE.
Click on ^{
} in PyCharm to browse to your generated SDK directory and then click ^{
} The project files will be displayed in the side bar as follows:
Add a new Test Project
Create a new directory by right clicking on the solution name as shown below:
Name the directory as "test"
Add a python file to this project with the name "testsdk"
Name it "testsdk"
Importing files from python library
Inorder to import file you need to just copy the sample file from here。
更新API密钥并发送域
apikey:这将在以下项下可用:登录到您的pepipost帐户->;设置->;集成。
fromemail:如果你的fromemail地址是info@mydomain.com,那么发送域mydomain需要在你的pepipost帐户下验证并激活。您可以在以下位置管理发送域:登录pepipost->;设置->;发送域。
运行测试项目
运行文件
ctrl+F5
或
右键单击测试项目中的python文件,然后单击
Run
Sample Example
^{pr 1}$Announcements
v2.5.0 has been released! Please see the release notes了解详细信息。
此库的所有更新都记录在我们的releases中。如有任何疑问,欢迎致电dx@pepipost.com
Roadmap
If you are interested in the future direction of this project, please take a look at our open issues和pull requests。我们很想听听你的反馈。
About
pepipost-php-sdk library is guided and supported by the Pepipost Developer Experience Team。 pepipost php sdk库由pepipost ltd.维护和资助。pepipost php sdk的名称和徽标是pepipost ltd.的商标。
许可证
这个代码库是由apimatic v2.0半自动生成的,并根据mit许可证(mit)进行授权。