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
mkdir -p ~/go/src/github.com/signalsciences | |
cd ~/go/src/github.com/signalsciences | |
git clone --branch CloudWAFInstances https://github.com/grokify/go-sigsci | |
git clone --branch CloudWAFInstances https://github.com/grokify/terraform-provider-sigsci | |
cd grokify/terraform-provider-sigsci | |
make | |
mkdir -p ~/.terraform.d/plugins/signalsciences/local/sigsci/0.5.1/linux_amd64 | |
cp terraform-provider-sigsci ~/.terraform.d/plugins/signalsciences/local/sigsci/0.5.1/linux_amd64/terraform-provider-sigsci | |
rm .terraform.lock.hcl | |
mkdir -p ~/go/src/github.com/signalsciences/terraform-test |
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
//terraform { | |
// required_providers { | |
// sigsci = { | |
// source = "signalsciences/sigsci" | |
// version = "0.4.2" | |
// } | |
// } | |
//} | |
// To build locally: |
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
$ bin/go-petstore.sh | |
$ mvn verify -f samples/client/petstore/go | |
$ mvn verify | |
$ git add * | |
$ git commit -m 'description of your PR' | |
$ bin/utils/ensure-up-to-date | |
$ git push origin go/client/<your-change> |
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
$ git clone https://github.com/<your-name>/openapi-generator | |
$ cd openapi-generator | |
$ git checkout -b go/client/<your-change> | |
$ vi <files-you-want-to-change> | |
$ mvn clean package -DskipTests | |
$ java -jar modules/openapi-generator-cli/target/openapi-generator-cli.jar generate -g go -i path/to/spec.(yaml|json) -o path/to/client -d packageName=myapi |
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
$ cd /path/to/openapi-generator | |
$ mvn clean 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
package main | |
import( | |
"fmt" | |
) | |
func main() { | |
fmt.Println("DONE") | |
} |
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
{ | |
"icon": "https://example.com/post_icon.png", | |
"title": "**Title of the post**", | |
"body": "Body of the post", | |
"attachments": [ | |
{ | |
"color": "#00ff2a", | |
"pretext": "Attachment pretext appears before the attachment block", | |
"author_name": "Author Name", | |
"author_link": "https://example.com/author_link", |
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
$request = $rcsdk->createMultipartBuilder() | |
->setBody(array( | |
'from' => array('phoneNumber' => $smsNumber), | |
'to' => array( | |
array('phoneNumber' => $credentials['mobileNumber']), | |
), | |
)) | |
->add(fopen('https://developers.ringcentral.com/assets/images/ico_case_crm.png', 'r')) | |
->request('/account/~/extension/~/sms'); |
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
HTTP/1.1 200 OK | |
{ | |
"uri" : "https.../restapi/v1.0/account/14542946004/extension/14542946004/message-store/10495240004", | |
"id" : 10495240004, | |
"to" : [ { | |
"phoneNumber" : "+14085505499", | |
"location" : "San Jose, West, CA" | |
} ], | |
"from" : { |
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
POST /restapi/v1.0/account/14542946004/extension/14542946004/sms HTTP/1.1 | |
Content-Type: multipart/mixed; boundary=PLA_BOUNDARY_123456 | |
Accept: application/json | |
--PLA_BOUNDARY_123456 | |
Content-Disposition: form-data; name="json" | |
Content-Type: application/json | |
{ |
NewerOlder