GithubHelp home page GithubHelp logo

nathancolpron / act-on-api-examples Goto Github PK

View Code? Open in Web Editor NEW

This project forked from leveragemarketing/act-on-api-examples

1.0 1.0 0.0 6 KB

Example code for interfacing with the Act-On API

PHP 100.00%

act-on-api-examples's Introduction

This repo contains some basic examples for use of the Act-On API. See the Act-On documentation for full details.

Copy auth.json.dist to auth.json and edit it so that it contains your API credentials. You will need an Act-On developer account in order to obtain a client id and client secret.

% cp auth.json.dist auth.json
% vim auth.json

Login to get a token. Tokens are good for an hour.

% ./authLogin.php
Got a new token.
% cat token.json
{"token_type":"bearer","expires_in":3600,"refresh_token":"...","access_token":"...","expires_at":1464030904}

Refresh your token:

% ./authRefreshToken.php
Current token is still good, not doing anything.

Run some example scripts:

% ./listList.php
There are 2 lists:
  [l-ctx] Contacts
  [l-tst] Test List
% ./contactUpdateById.php
Array
(
    [status] => success
    [message] => Record updated
)
% ./factInsert.php
Array
(
    [jobId] => 7829029
    [status] => success
)

act-on-api-examples's People

Contributors

alexhowansky avatar

Stargazers

 avatar

Watchers

 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.