Giter VIP home page Giter VIP logo

rendermani / ascio-classes Goto Github PK

View Code? Open in Web Editor NEW
2.0 2.0 0.0 241 KB

Classes to connect to the Ascio API. Please see https://aws.ascio.info for details.

License: GNU General Public License v3.0

PHP 99.09% HTML 0.36% Dockerfile 0.10% JavaScript 0.43% Shell 0.01%
ascio api domain-monitor dns domains soap ssl tmch domain-monitoring database-synchronization docker docker-compose composer ascio-api

ascio-classes's Introduction

ascio-classes

Classes to connect to the Ascio API. Please see https://aws.ascio.info for details.

Usage

Create a composer.json file in the root of your project

{   
    "repositories": [
        {
            "type": "vcs",
            "url": "https://github.com/rendermani/ascio-classes"
        }
    ],
    "require": {
        "php": ">=5.3.0",
        "ext-soap": "*", 
        "ascio/ascio-classes" : "dev-master"
    }
}

Create a config.json file in the root of your project

{
    "live" : {
        "v2" : {
            "account" : "",
            "password" : "",
             "wsdl" : "https://aws.ascio.com/2012/01/01/AscioService.wsdl"
        },
        "v3" : {
            "account" : "",
            "password" : "",
            "wsdl" : "https://aws.ascio.com/v3/aws.wsdl"
        },
        "dns" : {
            "account" : "",
            "password" : "",
            "wsdl" : "https://dnsservice.ascio.com/2010/10/30/DnsService.wsdl"
        }
    },
    "testing" : {
        "v2" : {
            "account" : "",
            "password" : "",
            "wsdl" : "https://aws.demo.ascio.com/2012/01/01/AscioService.wsdl"
        },
        "v3" : {
            "account" : "",
            "password" : "",
            "wsdl" : "https://aws.demo.ascio.com/v3/aws.wsdl"
        },
        "dns" : {
            "account" : "",
            "password" : "",
            "wsdl" : "https://dnsservice.demo.ascio.com/2010/10/30/DnsService.wsdl"
        }
    }
}

Please enter your ascio credentials. In most cases it's the same account for all API-Versions (v2,v3,dns). Live-account and testing-account have different credentials. Please don't forget to configure the ip-whitelisting in https://portal.ascio.com and https://portal.demo.ascio.com.

Run composer

Please look at https://getcomposer.org/ for composer installation-instructions.

composer install

Run an example

<?php
require_once("vendor/autoload.php");
use ascio\v3 as v3;
use ascio\v2 as v2;
use ascio\dns as dns; 
use ascio\lib as lib;
use ascio\lib\AscioException; 

use ascio\v2\PollMessage;
use ascio\v2\MessageType;

$client = lib\Ascio::getClientV2("testing");
$pollMessage = new PollMessage(0,MessageType::Message_to_Partner);
try {   
    $result = $client->PollMessage($pollMessage);
    var_dump($result->getMsgCount());
} catch (AscioException $e) {
    echo $e->debug();
    echo $e->debugSoap();
}

ascio-classes's People

Contributors

rendermani avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar

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.