This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'spec_helper' | |
describe AutotaskAPI::Appointment do | |
xml = ' | |
<id>76</id> | |
<UserDefinedFields/> | |
<ResourceID xsi:type="xsd:int">29684244</ResourceID> | |
<Title xsi:type="xsd:string">Example Appointment</Title> | |
<StartDateTime xsi:type="xsd:dateTime">2015-02-07T05:21:00</StartDateTime> | |
<EndDateTime xsi:type="xsd:dateTime">2015-02-07T05:22:00</EndDateTime> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'byebug' | |
module AutotaskAPI | |
class Entity | |
class_attribute :fields, :client, :find_cache | |
attr_accessor :attributes, :raw_xml | |
def initialize(xml) | |
self.raw_xml = xml | |
self.attributes = {} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
## Prepare ################################################################### | |
# Remove RVM | |
rvm implode | |
# Ensure your homebrew is working properly and up to date | |
brew doctor | |
brew update | |
## Install ################################################################### |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<%@ page import="java.util.*" %> | |
<html> | |
<head> | |
<title>NAM Diag Headers</title> | |
</head> | |
<body> | |
<h1>HTTP Request Headers Received</h1> | |
<table border="1" cellpadding="4" cellspacing="0"> | |
<% | |
Enumeration eNames = request.getHeaderNames(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<%@ page | |
import="java.io.*" | |
import="java.util.*" | |
%> | |
<% | |
//Do not allow page to be cached | |
response.setHeader("Cache-Control","no-cache"); | |
response.setHeader("Pragma","no-cache"); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Action.create([{ id: 1, name: 'gift', language: 'gift'}, | |
{ id: 2, name: 'note', language: 'affirmation'}, | |
{ id: 3, name: 'text', language: 'affirmation'}, | |
{ id: 4, name: 'i love you', language: 'affirmation'}, | |
{ id: 5, name: 'picture', language: 'affirmation'}, | |
{ id: 6, name: 'expressed concern for me', language: 'affirmation'}, | |
{ id: 7, name: 'expressed understanding for me', language: 'affirmation'}, | |
{ id: 8, name: 'kindness'}, | |
{ id: 9, name: 'counseling'}, | |
{ id: 10, name: 'period'}, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env node | |
/** | |
* Module dependencies. | |
*/ | |
//"use strict"; | |
var inquirer = require("inquirer"); | |
var Rx = require('rx'); | |
var request = require("request"); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
https://frank-api-dev-pr-11.herokuapp.com/profiles | |
JSON DATA | |
{"data": {"type":"profiles", "attributes":{"firstname":"John", "lastname":"Doe", "email":"john.doe@example.test"}}} | |
JSON RESPONSE | |
{ | |
"data": { | |
"id": "1", | |
"type": "profiles", |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
https://frank-api-dev-pr-11.herokuapp.com/entries | |
JSON DATA | |
{ "data": | |
{ "type": "entries", | |
"relationships": { | |
"profile": | |
{ "data": | |
{ "type": "profiles", "id": "1" } | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
using System.DirectoryServices; | |
using System.DirectoryServices.Protocols; | |
using System.Security.Cryptography.X509Certificates; | |
using System.Net; | |
using System.Collections; | |
namespace BulkCreate | |
{ | |
public class CreateUsers |