Giter Club home page Giter Club logo

aio-cli-plugin-target's Introduction

oclif License Codecov Coverage

aio-cli-plugin-target

Adobe Target Plugin for the Adobe I/O CLI

Configuration

Setup the configuration according to https://github.com/adobe/aio-lib-core-config/. The configuration must define the following data:

{
  "target": {
    "tenantName": "<Your IMS Org Id>
  },
  "jwt-auth": {
    "client_id": "<Your integration API key",
    "client_secret": "<Your integration client secret>",
    "jwt_payload": {
      "<Your integration JWT payload>"
    },
    "jwt_private_key": [
      "-----BEGIN PRIVATE KEY-----",
      "<Your integration private key",
      "On Multiple Lines>",,
      "-----END PRIVATE KEY-----",
      ""
    ]
  }
}

Usage

$ aio plugins:install -g @adobe/aio-cli-plugin-target
$ # OR
$ aio discover -i
$ aio target --help

Commands

Retrieves the list of previously-created content offers. The flags are optional and are used to indicate the sorting and filtering options.

USAGE
  $ aio adobe-target:list-offers

OPTIONS
  -l, --limit=limit  Defines the number of items to return. Default value is 2147483647.
  -o, --offset=offset  Defines the first offer to return from the list of total offers. Used in conjunction with limit, you can provide pagination in your application for users to browse through a large set of offers.
  -s, --sortBy=sortBy  Defines the sorting criteria on the returned items. You can add a “-” modifier to sort by descending order.

EXAMPLES
  $ aio adobe-target:list-offers
  $ aio adobe-target:list-offers -l=10 -o=0 -s=id
  $ aio adobe-target:list-offers --limit=5 --offset=3 --sortBy=-name

See code: src/commands/adobe-target/list-offers.js

aio adobe-target:get-offer IDENTIFIER

Retrieves the contents of an offer given an offer id.

USAGE
  $ aio adobe-target:get-offer IDENTIFIER

ARGUMENTS
  IDENTIFIER  The offer id

See code: src/commands/adobe-target/get-offer.js

aio adobe-target:create-offer NAME CONTENT

Creates a new content offer as defined by the request data.

USAGE
  $ aio adobe-target:create-offer NAME CONTENT -w=WORKSPACE

ARGUMENTS
  NAME  A string to identify the Offer. The name cannot be empty. Max length is 250 characters.
  CONTENT  Content of an Offer shown to user.

OPTIONS
  -w, --workspace=workspace  String Optional id of workspace to which the activity belongs. Max length is 250 characters. By default, Default workspace is assumed. Applicable for Enterprise Permissions (Target Premium).

See code: src/commands/adobe-target/create-offer.js

aio adobe-target:update-offer IDENTIFIER NAME CONTENT

Updates the content offer referenced by the id specified in the URL.

USAGE
  $ aio adobe-target:update-offer IDENTIFIER NAME CONTENT

ARGUMENTSS
  IDENTIFIER  The identifier of the offer. The id cannot be empty.
  NAME  A string to identify the Offer. The name cannot be empty. Max length is 250 characters.
  CONTENT  Content of an Offer shown to user.

See code: src/commands/adobe-target/update-offer.js

aio adobe-target:delete-offer IDENTIFIER

Updates the content offer referenced by the id specified in the URL.

USAGE
  $ aio adobe-target:delete-offer IDENTIFIER

ARGUMENTS
  IDENTIFIER  The identifier of the offer. The id cannot be empty.

See code: src/commands/adobe-target/delete-offer.js

aio-cli-plugin-target's People

Contributors

amulyakashyap09 avatar dependabot[bot] avatar greenkeeper[bot] avatar meryllblanchet avatar purplecabbage avatar shazron avatar yu1986 avatar

Stargazers

 avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

aio-cli-plugin-target's Issues

An in-range update of fetch-mock is breaking the build 🚨


☝️ Important announcement: Greenkeeper will be saying goodbye 👋 and passing the torch to Snyk on June 3rd, 2020! Find out how to migrate to Snyk and more at greenkeeper.io


The devDependency fetch-mock was updated from 9.3.1 to 9.4.0.

🚨 View failing branch.

This version is covered by your current version range and after updating it in your project the build failed.

fetch-mock is a devDependency of this project. It might not break your production code or affect downstream projects, but probably breaks your build or test tools, which may prevent deploying or publishing.

Status Details

Commits

The new version differs by 10 commits.

  • 3cdc7ba fixed broken tests
  • b1f33ec fix linting
  • 87a2758 Merge pull request #532 from chet-manley/feat-return-node-fetch-interface
  • d7a6577 feat: mock node-fetch's export pattern
  • 3500688 Merge pull request #526 from pabloosso/patch-1
  • 8c231ac Fixed typo
  • e25f30a Merge pull request #525 from willheslam/patch-1
  • 5817bbf Fix typo in mock_response.md
  • 41b238f Update cheatsheet.md
  • aa8311e Update cheatsheet.md

See the full diff

FAQ and help

There is a collection of frequently asked questions. If those don’t help, you can always ask the humans behind Greenkeeper.


Your Greenkeeper Bot 🌴

resolve depcheck warnings

Unused dependencies
* @oclif/config
* @oclif/errors
Missing dependencies
* execa: ./e2e/e2e.js
* chalk: ./e2e/e2e.js

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.