Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@simpleview/crm-client

Package Overview
Dependencies
Maintainers
4
Versions
7
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@simpleview/crm-client

Client for communicating with sv-crm

  • 1.0.5
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
2
increased by100%
Maintainers
4
Weekly downloads
 
Created
Source

sv-crm-client

Client and tools for communicating with sv-graphql and crm-graphql-server.

installation

npm install @simpleview/sv-crm-client

crm_query

For all queries, a bearer token must be proved in Authorization header. To acquire your token, you must login first to get the token: { auth { login(email: String!, password: String!) { success token } } }

For all queries, acct_id must be passed at the root. { crm(acct_id: String!) { ... } }

  • get_contact
    • Returns an array of contacts, which can be filtered by recId.
    • See schema browser for all fields.
    query getContact {
    	crm(acct_id: String!) {
    		get_contact(filter: {
    			recId: Int
    		}) {
    			recId
    			FirstName
    			LastName
    			Email {
    				EmailAddress
    			}
    		}
    	}
    }
    

crm_mutation

For all mutations, a bearer token must be proved in Authorization header. To acquire your token, you must login first to get the token: { auth { login(email: String!, password: String!) { success token } } }

For all mutations, acct_id must be passed at the root. { crm(acct_id: String!) { ... } }

  • set_contact
    • Sets a contact, and returns the ID
    • See schema browser for all possible inputs.
    mutation setContact {
    	crm(acct_id: String!) {
    		set_contact(input: {
    			FirstName: "test",
    			LastName: "user",
    			Email: [
    				{
    					type: "contact",
    					EmailAddress: "test@test.com"
    				}
    			]
    		})
    	}
    }
    

FAQs

Package last updated on 23 Apr 2019

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc