(by @andrestaltz)
If you prefer to watch video tutorials with live-coding, then check out this series I recorded with the same contents as in this article: Egghead.io - Introduction to Reactive Programming.
| // Go to https://www.linkedin.com/mynetwork/invitation-manager/ and run the following code | |
| // For more amazing content, visit -- https://bit.ly/devtools-yt | |
| var ACCEPT_BTN_SELECTOR = ".invitation-card__action-btn:nth-of-type(2)"; | |
| var REJECT_BTN_SELECTOR = ".invitation-card__action-btn:nth-of-type(1)"; | |
| var DELAY = 2000; // in miliseconds | 2 seconds delay between each request accept | |
| var ACCEPT = true; // set to false if you want to reject all connections | |
| function sleep() { |
| <html> | |
| <head> | |
| <title>API Example</title> | |
| <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> | |
| <script src="http://ajax.googleapis.com/ajax/libs/jquery/2.1.1/jquery.min.js"></script> | |
| <script type="text/javascript"> | |
| var accessToken = "<your agent's client access token>"; | |
| var baseUrl = "https://api.api.ai/v1/"; |
(by @andrestaltz)
If you prefer to watch video tutorials with live-coding, then check out this series I recorded with the same contents as in this article: Egghead.io - Introduction to Reactive Programming.