Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added some test codes with secrets #10

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions api_keys/adafruit.py
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
key = "aio_TTnb41qKsea1mkztpK41fxXNavR9"
3 changes: 3 additions & 0 deletions api_keys/airtable.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
def main():
airtable_secret = "patBDia5XLOjNAo0z.46ecd8a1c39d404eb5db07cc2c1afaa7db9be048deb2db6165efb4ec6f9c7c9b"
return airtable_secret
3 changes: 3 additions & 0 deletions api_keys/bittrex.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
def main():
bittrex_access = "5967fc6d683f4f04b9f9b5a8744dc1f3"
return bittrex_access
4 changes: 4 additions & 0 deletions api_keys/cdp_api_key.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"name": "organizations/e7c71973-9ed6-40ef-aec9-b5a8a4d78518/apiKeys/3a25c2c2-70ed-4c78-ab5a-28226194ae04",
"privateKey": "-----BEGIN EC PRIVATE KEY-----\nMHcCAQEEINAREIpCloWTL0S8sIrALIIi/g8/gd5uFdzqbRT7GCkFoAoGCCqGSM49\nAwEHoUQDQgAEX89Utg3/OYRrApHPDnfpkvw5z4Awite7GuA8yX5mnkqCLdPYdtYZ\npjShjvdEH2j4CZY0ad6SJQCS97fQsL59LQ==\n-----END EC PRIVATE KEY-----\n"
}
4 changes: 4 additions & 0 deletions api_keys/codecov.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
def main():
codecov_api = "4939f06d-9e24-401f-8244-36fc37d86b46"
api_key = "4939f06d-9e24-401f-8244-36fc37d86b46"
return api_key, codecov_api
4 changes: 4 additions & 0 deletions api_keys/coinbase.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
def main():
api_secret = "xElUZsgIkTEPTiiSc83JViI4gBzhjBe8"
api_key_name= "organizations/e7c71973-9ed6-40ef-aec9-b5a8a4d78518/apiKeys/6b43ed9d-2aa2-4abf-806a-f7b728b3ae02"
return api_key_name, api_secret
3 changes: 3 additions & 0 deletions api_keys/defined-netwrking.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
def main():
api_token = "dnkey-AHBDSNIG5ATR4LPUX4XTEVXEP4-ACW2JQ45HAWA2XA6FIJNSNBRY2Q4WMSCNNIFSL6VRZQYFZKI2VHA"
return api_token
8 changes: 8 additions & 0 deletions api_keys/digital_ocean.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
def main():
access_token = "doo_v1_4ea90994efe8999d0892b6069bc754a78c656f8e843361e1e4d1cd04ac85c381"
refresh_token = "dor_v1_4ea90994efe8999d0892b6069bc754a78c656f8e843361e1e4d1cd04ac85c381"
space_access_keys = "DO00BEULJ9DWZ6DFCF6H"
access_secret = "dop_v1_ad13328697edede86aa6ada480eca7581c3eedfb59e59aa1055619149c7b1b37"
secret_key = "wgarYELAMdPrpNG7xibxZlEWmIpsMOTXjZR/FPnsSlk"

return access_token, refresh_token, space_access_keys, access_secret, secret_key
3 changes: 3 additions & 0 deletions api_keys/etsy.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
def main():
access_token = '34223478.O1zLuwveeKjpIqCQFfmR-PaMMpBmagH6DljRAkK9qt05OtRKiANJOyZlMx3WQ_o2FdComQGuoiAWy3dxyGI4Ke_76PR'
return access_token
44 changes: 44 additions & 0 deletions api_keys/flickr.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
package main

import (
"fmt"
"io/ioutil"
"net/http"
"net/url"
)

// Function to test Flickr access token
func testFlickrAccessToken(accessToken string) {
oauth_token := "72157685534112345-1a2b3c4d5e6f7g8h"
apiURL := "https://www.flickr.com/services/rest/"
params := url.Values{}
params.Add("method", "flickr.test.login")
params.Add("format", "json")
params.Add("nojsoncallback", "1")
params.Add("oauth_token", oauth_token)

fullURL := fmt.Sprintf("%s?%s", apiURL, params.Encode())

response, err := http.Get(fullURL)
if err != nil {
fmt.Printf("Error testing access token '%s': %v\n", accessToken, err)
return
}
defer response.Body.Close()

body, err := ioutil.ReadAll(response.Body)
if err != nil {
fmt.Printf("Error reading response body: %v\n", err)
return
}

fmt.Printf("Response body: %s\n", body)

// You would typically parse the JSON response here and check if the token is valid
// Example:
// if isValid(response) {
// fmt.Printf("Access token '%s' is valid!\n", accessToken)
// } else {
// fmt.Printf("Access token '%s' is invalid.\n", accessToken)
// }
}
7 changes: 7 additions & 0 deletions api_keys/kraken.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
def main():
api_key = "HJo2SZB1XqqTY0DAjSV2ASVNQhbCaRbt5K/7CsD8yr1eJOQZ+RxqAsxK"
kraken_api = "HJo2SZB1XqqTY0DAjSV2ASVNQhbCaRbt5K/7CsD8yr1eJOQZ+RxqAsxK"
kraken_private_key = "AFKP4RU0pl0aQGTOfj60lfOyeLWYmFZ/m4nrL+Ch1TDjPR2GFGCVWZQgzvmQ/jHwxoWkgwB03QD7LmdyEQ7y8w=="
private_key = "AFKP4RU0pl0aQGTOfj60lfOyeLWYmFZ/m4nrL+Ch1TDjPR2GFGCVWZQgzvmQ/jHwxoWkgwB03QD7LmdyEQ7y8w=="

return kraken_api, api_key, kraken_private_key, private_key