承接 notiss/communication 相关项目开发

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

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

notiss/communication

最新稳定版本:1.0.1

Composer 安装命令:

composer require notiss/communication

包简介

Interact with the Notiss communication instance APIs

README 文档

README

Notiss API client for the Communication API

Requirements

To use the Notiss Communication API client, the following things are required:

  • Get yourself a Notiss Communication account
  • Get yourself an API key
  • Now you're ready to interact with the Notiss Communication API

Composer Installation

By far the easiest way to install the Notiss Communication API client is to require it with Composer.

$ composer require notiss/communication

{
    "require": {
        "notiss/communication": "^1.0"
    }
}

Getting started

Initializing the Notiss Communication API client, and setting your API key.

$notiss_com = new \Notiss\Communication\ApiClient("API_KEY_HERE","https://communication.notiss.nl/api/v1/connect/");

Get domain details

$domain_details = $notiss_com->get('domain-details');

Get tags contacts can subscribe to

$tags = $notiss_com->tags->get();

Get all tags

$tags = $notiss_com->tags->all();

Subscribe to tag

You can pass in a contact array and/or a organization. If the contact and/or organization does not exist, the organization is created and the optin is set to true If the contact and/or organization is passed to the request, the email or the mobile attribute is required. In addition is the organization name is also required. Empty values will be removed from the request, and wont be updated.

$contact = array(
    'title' => '',
    'firstname' => '',
    'lastname' => '',
    'gender' => '',
    'address' => '',
    'address2' => '',
    'zipcode' => '',
    'city' => '',
    'country' => '',
    'phone' => '',
    'mobile' => '',
    'email' => 'info@notiss.nl',
    'language' => '',
);

$organization = array(
    'creditor_nr' => '',
    'debitor_nr' => '',
    'name' => 'Notiss',
    'address' => '',
    'address2' => '',
    'zipcode' => '',
    'city' => '',
    'country' => '',
    'phone' => '',
    'mobile' => '',
    'fax' => '',
    'email' => 'info@notiss.nl',
    'website' => '',
    'coc' => '',
    'vat_number' => '',
    'iban_name' => '',
    'iban_number' => '',
    'swift_code' => '',
    'language' => '',
);

$data = array(
    'contact' => $contact,
    'organization' => $organization,
);
$tags = $notiss_com->tags->subscirbeToTag($tag_id, $data);

Contact

Get all contacts

$notiss_com->contacts->all();

Get contact

$notiss_com->contacts->get($contact_id);

Create contact

$new_contact = array(
    'title' => '',
    'firstname' => '',
    'lastname' => '',
    'gender' => '',
    'address' => '',
    'address2' => '',
    'zipcode' => '',
    'city' => '',
    'country' => '',
    'phone' => '',
    'mobile' => '',
    'email' => 'info@notiss.nl',
    'language' => '',
);
$notiss_com->contacts->create($new_contact);

Update contact

$contact_id = 1;
$contact = array(
    'title' => '',
    'firstname' => '',
    'lastname' => '',
    'gender' => '',
    'address' => '',
    'address2' => '',
    'zipcode' => '',
    'city' => '',
    'country' => '',
    'phone' => '',
    'mobile' => '',
    'email' => 'info@notiss.nl',
    'language' => '',
);
$notiss_com->contacts->update($contact_id, $contact);

Delete contact

$notiss_com->contacts->delete($contact_id);

Organization

Get all organizations

$notiss_com->organizations->all();

Get organization

$notiss_com->organizations->get($organization_id);

Create organization

$new_organization = array(
    'title' => '',
    'firstname' => '',
    'lastname' => '',
    'gender' => '',
    'address' => '',
    'address2' => '',
    'zipcode' => '',
    'city' => '',
    'country' => '',
    'phone' => '',
    'mobile' => '',
    'email' => 'info@notiss.nl',
    'language' => '',
);
$notiss_com->organizations->create($new_organization);

Update organization

$organization_id = 1;
$organization = array(
    'title' => '',
    'firstname' => '',
    'lastname' => '',
    'gender' => '',
    'address' => '',
    'address2' => '',
    'zipcode' => '',
    'city' => '',
    'country' => '',
    'phone' => '',
    'mobile' => '',
    'email' => 'info@notiss.nl',
    'language' => '',
);
$notiss_com->organizations->update($organization_id, $organization);

Delete organization

$notiss_com->organizations->delete($organization_id);

Subscribing to tags with overwrite

Does the same as the Subscribe to tag endpoint, empty values will clear contact or organizations attributes if set.

Support

Contact: www.notiss.nl — development@notiss.nl — +31 85 40 11 397

统计信息

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

GitHub 信息

  • Stars: 0
  • Watchers: 0
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: BSD-2-Clause
  • 更新时间: 2022-11-13

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固