Welcome to the GoFuckYourself.com - Adult Webmaster Forum forums.

You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content and access many other special features. Registration is fast, simple and absolutely free so please, join our community today!

If you have any problems with the registration process or your account login, please contact us.

Post New Thread Reply

Register GFY Rules Calendar
Go Back   GoFuckYourself.com - Adult Webmaster Forum > >
Discuss what's fucking going on, and which programs are best and worst. One-time "program" announcements from "established" webmasters are allowed.

 
Thread Tools
Old 05-28-2023, 11:33 AM   #1
notinmybackyard
Confirmed User
 
notinmybackyard's Avatar
 
Industry Role:
Join Date: Sep 2012
Posts: 3,230
Teaching myself API and I've got a question.

I believe that the brain is a muscle and it needs to workout or it'll go soft. So, I'm trying to learn some new skills. OK, I've got a problem:

What am I supposed to put in the address to field? They don't break down in the docs what they are looking for in the various fields.

__________________
officially retired as of March 01 2018 but still fucking around and getting into shit.
notinmybackyard is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 05-28-2023, 11:57 AM   #2
ZTT
Confirmed User
 
ZTT's Avatar
 
Industry Role:
Join Date: Apr 2019
Posts: 657
If you're writing to the president (of America), the address you put is:

Mr President
The White House
Washington

If you're writing to Santy Claus, the address you put is:

Mr Santy Claus
Lapland
The North Pole

HTH
__________________
__________________
ZTT is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 05-28-2023, 12:45 PM   #3
the_software_dev
Confirmed User
 
the_software_dev's Avatar
 
Industry Role:
Join Date: Feb 2023
Posts: 56
Since this seems to be related to crypto, and since the address is merely a string, maybe this is a blockchain address? They do validate it, so you have to follow a certain format. Look up for blockchain address formats. Don't think they expect a regular address
the_software_dev is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 05-28-2023, 01:16 PM   #4
dUbster
So Fucking Banned
 
Industry Role:
Join Date: Aug 2021
Posts: 346
address_to = '1BvBMSEYstWetqTFn5Au4m4GFg7xJaNVN2' - this is an example btc address
api_key = 'YOUR_API_KEY'

# Construct the API request string
api_url = f'https://api.example.com/address-to-service?api_key={api_key}&address_to={address_to}'

# Make the API request using the constructed URL
response = requests.get(api_url)

# Process the API response
# ... (code to handle the response)
dUbster is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 05-29-2023, 01:08 AM   #5
plsureking
bored
 
plsureking's Avatar
 
Industry Role:
Join Date: Aug 2003
Location: Metaverse
Posts: 4,675
why the hell wouldn't you post the link to the API docs? i've used hundreds of APIs. we can't guess what they want or which one you are using. i don't even see your endpoint in the image.

i agree about use it or lose it. that's why i sit at my desk every day.



#
plsureking is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 05-29-2023, 01:27 AM   #6
CurrentlySober
Too lazy to wipe my ass
 
CurrentlySober's Avatar
 
Industry Role:
Join Date: Aug 2002
Location: A Public Bathroom
Posts: 38,528
Quote:
Originally Posted by plsureking View Post
i agree about use it or lose it. that's why i sit at my desk every day.
Who is it that you are worried about, that you think they are going to steal your desk?

A good security system, or a simple lock on the door, would free you up to do ther more fun stuff...
__________________


👁️ 👍️ 💩
CurrentlySober is online now   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 05-29-2023, 02:03 AM   #7
plsureking
bored
 
plsureking's Avatar
 
Industry Role:
Join Date: Aug 2003
Location: Metaverse
Posts: 4,675
Quote:
Originally Posted by CurrentlySober View Post
Who is it that you are worried about, that you think they are going to steal your desk?

A good security system, or a simple lock on the door, would free you up to do ther more fun stuff...
my wife. she has the keys

#
plsureking is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 05-29-2023, 04:04 AM   #8
ZTT
Confirmed User
 
ZTT's Avatar
 
Industry Role:
Join Date: Apr 2019
Posts: 657
Quote:
Originally Posted by plsureking View Post
why the hell wouldn't you post the link to the API docs? i've used hundreds of APIs. we can't guess what they want or which one you are using. i don't even see your endpoint in the image.
LOL I didn't even know there was an image. I thought he was just asking for help and completely forgetting to say what about.

Now I've seen it, it's not much more help, but he's probably just trying to make a cryptocurrency price app using 'Postman', but using currency exchange code.

Anyway, more importantly, fuck imgur. They haven't just deleted billions of images, they're also blocking loads of networks and ISPs.

Anyone found a decent alternative that doesn't require sign up?
__________________
__________________
ZTT is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 05-29-2023, 04:32 AM   #9
CurrentlySober
Too lazy to wipe my ass
 
CurrentlySober's Avatar
 
Industry Role:
Join Date: Aug 2002
Location: A Public Bathroom
Posts: 38,528
I can help with any APIP's questions you may have, (infact, Im somewhat of an expert) but I dont know just API's - Sorry.
CurrentlySober is online now   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 05-29-2023, 05:13 AM   #10
JesseQuinn
feeding the wolves
 
JesseQuinn's Avatar
 
Industry Role:
Join Date: Aug 2012
Location: between sand and stars in Jamaica
Posts: 6,243
Quote:
Originally Posted by ZTT View Post
Anyone found a decent alternative that doesn't require sign up?
nah, ask Rebel

he knows everything, but not in an uppity officious manner. if you ask nicely he might send you a wicked track too to brighten your day

as to the OP who finds this place 'useless' and thinks t'would be cool if the US essentially banned porn/adult, suspect this API is for his quality content sold via crypto

yay to a bright shiny day when none of us can monetize via cc. oh what a party that would bring

lol dude couldn't even figure out how to change his widgets without gfy input. it was RIGHT HERE

but Dubs was nice enough to spell it out

and he expects those hypothetical customers to use crypto?

like all of a sudden everyone is gonna get a crypto address?



@OP hope ya get a bunch a market share there! right now it's what? like 10% if that?


w/o cc we're kinda fucked. but he's "just fucking around" yet 'cares'...or doesn't. somewhat confusing, but it's aight

about the muscle thing...def use. but if been a while which I suspect it has been ya gotta ease into it to prevent injury caused by strain

start with picture puzzles and lots of hydration

******

not ageist, my mom is is 77 and yesterday I asked her, during our daily call, what ya do today?

her: oh, you know, gathered up brush from the last storm, dug the plants into the beds outside I turned over a few weeks ago waiting for the last of the northern CA end of winter frosts, then took 'em out, planted em, watered 'em, pruned trees, vacuumed cuz I have a fellow tai chi instructor coming over Monday to go over new moves we want to introduce to class on Monday aft, now just sitting re-reading the book I rec'd for book club (MaddAddam), knitting a new shawl with kitten 'pon lap. you?


me: uh...jesus mother fucking christ I love you and not just cuz you're my moms

and actually like some of my music and is insightful and funny as fuck


OP, you still ok if we all lose access to cc? neither here nor there, just curious how much you care lol
JesseQuinn is online now   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 05-29-2023, 05:29 AM   #11
plsureking
bored
 
plsureking's Avatar
 
Industry Role:
Join Date: Aug 2003
Location: Metaverse
Posts: 4,675
Quote:
Originally Posted by JesseQuinn View Post
nah, ask Rebel

he knows everything, but not in an uppity officious manner. if you ask nicely he might send you a wicked track too to brighten your day

as to the OP who finds this place 'useless' and thinks t'would be cool if the US essentially banned porn/adult, suspect this API is for his quality content sold via crypto

yay to a bright shiny day when none of us can monetize via cc. oh what a party that would bring
i love this rant <3 gfy needs more

#
plsureking is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 05-29-2023, 05:52 AM   #12
JesseQuinn
feeding the wolves
 
JesseQuinn's Avatar
 
Industry Role:
Join Date: Aug 2012
Location: between sand and stars in Jamaica
Posts: 6,243
Quote:
Originally Posted by plsureking View Post
i love this rant <3 gfy needs more

#
not a rant but whatever

have a wicked day ya'll

PS that Atwood trilogy really good
JesseQuinn is online now   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 05-29-2023, 11:59 AM   #13
notinmybackyard
Confirmed User
 
notinmybackyard's Avatar
 
Industry Role:
Join Date: Sep 2012
Posts: 3,230
Quote:
Originally Posted by plsureking View Post
why the hell wouldn't you post the link to the API docs? i've used hundreds of APIs. we can't guess what they want or which one you are using. i don't even see your endpoint in the image.

i agree about use it or lose it. that's why i sit at my desk every day.



#
Because I'm a secretive dumb old fuck who often borders on being an idiot because of my personality. Here's the link : https://api.simpleswap.io/
__________________
officially retired as of March 01 2018 but still fucking around and getting into shit.
notinmybackyard is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 05-29-2023, 12:21 PM   #14
notinmybackyard
Confirmed User
 
notinmybackyard's Avatar
 
Industry Role:
Join Date: Sep 2012
Posts: 3,230
Quote:
Originally Posted by JesseQuinn View Post

as to the OP who finds this place 'useless' and thinks t'would be cool if the US essentially banned porn/adult, suspect this API is for his quality content sold via crypto

You read very little of anything posted and comprehend even less. You're either a moron or stoned and I suspect most often it's both. All of your opinions stem from this social justice warrior woke bullshit and your sense of being owed something by society.


So just to make things very clear to you and anyone whom I might do business with.

Anyone who works for me/us gets paid! We pay on time, every time and without debate or re-negotiations. Plus porn talent always gets paid in cash on set, immediately after they sign the release and we have copies of their ID. Whatever the final outcome of the video, they go home with that money.

We're not Budweiser or Target. We're not obligated to participate in any one's social causes and we're not going to unless there's strong financial incentive. I've lived through the 60s and Ms. Jesse Quinn, you're a very poor imitation of a hippie.

As for this forum:

Most of my expertise is in business and production and not very technical. Never the less, I'm very very happy to pay it forward and be of help to others on this site when the opportunity presents itself. I'm old school so I don't need to like someone in order to be helpful.
__________________
officially retired as of March 01 2018 but still fucking around and getting into shit.
notinmybackyard is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 05-29-2023, 02:36 PM   #15
JesseQuinn
feeding the wolves
 
JesseQuinn's Avatar
 
Industry Role:
Join Date: Aug 2012
Location: between sand and stars in Jamaica
Posts: 6,243
hmm, pretty sure my level of reading comprehension is fairly high

as to being a moron, I wish. suspect life would be easier, or perhaps not. dunno


stoned? not yet, that's an end of the night thing


'social justice warrior'? I'm not American screamy nor do I consume media that I find divisive

I'm chilling in the Caribbean, working hard amongst fellow hard workers who worked even harder to get beyond that here

Seaga years: interesting history, look it up


you're just trying for a cheap shot cuz I support BLM TO for the reasons I posted in the basement


such a radical. please


ok...so you want a medal for paying performers in cash in real time?

how you plan to monetize with customers if you get your dream of illegality?

w/o cc's you don't think some of them might be wary of crypto? not like billion dollar scams over any of that

but yeah, I must be high. and what do I know being here when you were doing what?


PS none of those brands exist in my county. and no 7-11's. it's hopeless


love the track obv otherwise I wouldn't post it but the vid reminds me of the Santana lion album cover I totally do not have on my wall. the one with all the faces. I got it from my dad

pick out all the acts of kindness, it's fun






Quote:
Originally Posted by notinmybackyard View Post
As for this forum:

Most of my expertise is in business and production and not very technical. Never the less, I'm very very happy to pay it forward and be of help to others on this site when the opportunity presents itself. I'm old school so I don't need to like someone in order to be helpful.

would be cool if you showed that, but there is no show only do

but yes, going forward w3schools, stackoverflow, good resources

start with not being a dick

honestly hope you have a wicked rest of your day
JesseQuinn is online now   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 05-29-2023, 02:59 PM   #16
sarettah
see you later, I'm gone
 
Industry Role:
Join Date: Oct 2002
Posts: 14,058
Quote:
Originally Posted by notinmybackyard View Post
Because I'm a secretive dumb old fuck who often borders on being an idiot because of my personality. Here's the link : https://api.simpleswap.io/
yeah, the docs are important

no 2 apis are the same, some may be very similar but each is fairly unique to whatever function the api has

.
__________________
All cookies cleared!
sarettah is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 05-29-2023, 03:30 PM   #17
fris
Too lazy to set a custom title
 
fris's Avatar
 
Industry Role:
Join Date: Aug 2002
Posts: 55,287
ya also depends on language using to parse. each code will be different.
__________________
Since 1999: 69 Adult Industry awards for Best Hosting Company and professional excellence.


WP Stuff
fris is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 05-29-2023, 03:31 PM   #18
pornmasta
Too lazy to set a custom title
 
pornmasta's Avatar
 
Join Date: Jun 2006
Posts: 18,985
Energy builds America ;)
pornmasta is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 05-29-2023, 04:39 PM   #19
dUbster
So Fucking Banned
 
Industry Role:
Join Date: Aug 2021
Posts: 346
Here you go

Code:
# Replace 'YOUR_API_KEY' with your actual API key
api_key = 'YOUR_API_KEY'

# Set the endpoint URL
api_url = 'https://api.simpleswap.io/v1/'

# Function to get the current Bitcoin exchange rate
def get_btc_exchange_rate():
    endpoint = 'get_rate'
    currency_from = 'btc'
    currency_to = 'usd'

    # Construct the API request URL
    url = f'{api_url}{endpoint}?currency_from={currency_from}&currency_to={currency_to}'

    # Make the API request using the constructed URL
    response = requests.get(url, headers={'Api-Key': api_key})

    # Process the API response
    if response.status_code == 200:
        data = response.json()
        rate = data['rate']
        print(f'Current BTC exchange rate: {rate}')
    else:
        print(f'Error: {response.status_code}')

# Function to swap Bitcoin for another cryptocurrency
def swap_bitcoin(address_from, address_to, amount):
    endpoint = 'swap'
    currency_from = 'btc'
    currency_to = 'eth'

    # Construct the API request URL
    url = f'{api_url}{endpoint}'

    # Set the request payload
    payload = {
        'address_from': address_from,
        'address_to': address_to,
        'amount': amount,
        'currency_from': currency_from,
        'currency_to': currency_to
    }

    # Make the API request using the constructed URL and payload
    response = requests.post(url, headers={'Api-Key': api_key}, json=payload)

    # Process the API response
    if response.status_code == 200:
        data = response.json()
        transaction_id = data['transaction_id']
        print(f'Success! Transaction ID: {transaction_id}')
    else:
        print(f'Error: {response.status_code}')

# Example usage
address_from = 'YOUR_BITCOIN_ADDRESS'
address_to = 'YOUR_ETHEREUM_ADDRESS'
amount = 0.01

get_btc_exchange_rate()
swap_bitcoin(address_from, address_to, amount)
dUbster is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 05-29-2023, 07:59 PM   #20
plsureking
bored
 
plsureking's Avatar
 
Industry Role:
Join Date: Aug 2003
Location: Metaverse
Posts: 4,675
Quote:
Originally Posted by sarettah View Post
yeah, the docs are important

no 2 apis are the same, some may be very similar but each is fairly unique to whatever function the api has

.
most of the time, no two versions of an API are the same either

(i'm looking at you google anal! i still gotta convert a few hundred sites by July 1 )

#
__________________
#
plsureking is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Post New Thread Reply
Go Back   GoFuckYourself.com - Adult Webmaster Forum > >

Bookmarks

Tags
address, field, supposed, helpme, fields, break, skills, docs, brain, muscle, api, question, workout, teaching, learn, soft



Advertising inquiries - marketing at gfy dot com

Contact Admin - Advertise - GFY Rules - Top

©2000-, AI Media Network Inc



Powered by vBulletin
Copyright © 2000- Jelsoft Enterprises Limited.