Comments (3)
P.S. To anyone else looking to do this sooner than later, I used this "shim":
// Check for the `client.users.merge` method. Shim it, if not present.
// NOTE: Critically dependent on the internal implementation of the "node-zendesk" module!
if (typeof client.users.merge === "undefined") {
var Users = client.users.constructor;
Users.prototype.merge = function(id, targetId, cb) {
this.request('PUT', ['users', id, 'merge'], { user: { id: targetId } }, cb);
};
if (typeof client.users.merge !== "function") {
throw new Error("ERROR! Extending Zendesk Client API unexpectedly failed.");
}
}
from node-zendesk.
@JamesMGreene you got the code pretty much there, feel free to make a PR :)
from node-zendesk.
True enough. PR submitted.
from node-zendesk.
Related Issues (20)
- Import custom object records
- error message: "Must use import to load ES Module"
- errors returned as buffer instead of strings
- qs vulnerable to Prototype Pollution
- Request to migrate library from Offset Based Pagination to Cursor Based Pagination HOT 1
- Migrate request to native fetch / node-fetch / axios? HOT 10
- What changed in version 3.0.0? HOT 2
- Possibly get betamax wiremocks up and running here. HOT 2
- Migrate HC APIS not listed in previous issue to CBP HOT 1
- nconf don't work HOT 1
- Please migrate off of the request library to address tough-cookie CVE HOT 2
- Apps
- jobStatuses.watch probably needs some love
- Release `fetch` changes HOT 5
- Update Documentation
- fetch is not defined HOT 2
- 404 calling createMany for Organization Memberships
- OrganizationMemberships deleteMany does not work as implemented. HOT 1
- TLC Tickets class
- TLC Users.js
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 node-zendesk.