Comments (6)
Hi @ESouza ,
I apologize.. I just realized earlier today that my gem update (1.3.6) is only compatible with Ruby 3. Until I update it go ahead and install 1.3.5 and see if that fixes your problem.
from infusionsoft.
@nateleavitt thank you yes that did solve the issue. Much appreciated it. Thank you
from infusionsoft.
@nateleavitt quick question, if I need to pull all Tags on Keap and possibly add and remove some tags using the gem, how should I go about it? Thank you
from infusionsoft.
Hi @ESouza,
There are a couple ways to do that. Since version 1.3.5 I have added the ability to access the rest api with Keap. So you can do it either with the xmlrpc or rest api. I am currently in the process of renaming the gem (keap) and will be adding additional documentation.
For xmlrpc you would do something like this:
infusion_tag = {"GroupName" => "Tag Name", "GroupCategoryId" => category_id}
tag_id = Infusionsoft.data_add(:ContactGroup, infusion_tag)
for rest you would do this:
payload = {
category: {
id: tag_category_id
},
description: 'Tag Description',
name: 'Tag Name'
}
# create tag
tag = Infusionsoft.post('/tags', @token, payload: payload)
from infusionsoft.
I just read your comment and realized I may have misunderstood. To pull all tags you would do something like the following:
# xmlrpc
# access the `ContactGroup` table (https://developer.infusionsoft.com/docs/table-schema/)
tags = Infusionsoft.data_query(:ContactGroup, 1000, 0, {}, [:Id, :GroupName])
or
# rest api
tags = Infusionsoft.get("/tags", @token, query: { offset: 0, limit: 1000 })
from infusionsoft.
Amazing. Thank you so much for your help.
from infusionsoft.
Related Issues (20)
- email_get_template fails with an XML parsing error HOT 8
- List of all Contacts HOT 2
- [Unexpected]Unexpected error creating subscription HOT 3
- Bug? ... InvoiceService.addRecurringOrder HOT 19
- API Key in log? HOT 6
- Searching Contacts by Custom Fields HOT 2
- Get contact id using the email HOT 2
- Implement adding manual payment for an Invoice HOT 1
- InvoiceService.chargeInvoice InfusionAPIError: No method matching arguments HOT 3
- No such handler: InvoiceService.getinvoice_id HOT 1
- Rare but showstopper OpenSSL errors with xmlrpc HOT 6
- Rescue and retry on OpenSSL/Bad Gateway connection errors HOT 9
- How to apply tags to contact? HOT 2
- Fails to update datetime field when using ContactService.addWithDupCheck HOT 1
- REST Auth HOT 1
- Non-200 Infusionsoft API responses aren't being logged HOT 3
- Missing examples in README HOT 3
- Updading Groups(tags) HOT 2
- SMS Opt in when creating contacts HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from infusionsoft.