# Periodically checking CharaterOwnerHash

**URL:** <https://forums.eveonline.com/t/periodically-checking-charaterownerhash/60227>\
**Category:** Third Party Developers\
**Created:** [February 28, 2018, 9:41am UTC](https://forums.eveonline.com/t/periodically-checking-charaterownerhash/60227 "2018-02-28T09:41:10Z")\
**Posts on this page:** 12\
**Page:** 1

<div class="post-metadata">

**Author:** ![MJ\_Maverick](https://sea1.discourse-cdn.com/eveonline/user_avatar/forums.eveonline.com/mj_maverick/32/465668_2.png) [@MJ\_Maverick](https://forums.eveonline.com/u/MJ_Maverick)\
**Post date:** [February 28, 2018, 9:41am UTC](https://forums.eveonline.com/t/periodically-checking-charaterownerhash/60227/1 "2018-02-28T09:41:11Z")

</div>

Is there a way of holding onto the hash in SQL and checking it at a later date with a simple call? Or do I have to go jumping though a 12 stage hoops hurdle course of refresh token and what not?

---

<div class="post-metadata">

**Author:** ![Steve\_Ronuken](https://sea1.discourse-cdn.com/eveonline/user_avatar/forums.eveonline.com/steve_ronuken/32/373894_2.png) [@Steve\_Ronuken](https://forums.eveonline.com/u/Steve_Ronuken)\
**Post date:** [February 28, 2018, 2:18pm UTC](https://forums.eveonline.com/t/periodically-checking-charaterownerhash/60227/2 "2018-02-28T14:18:26Z")

</div>

You need to use the refresh token, to get an access token, to use the verify endpoint. (so a 3 step process. The same three step process to use any authenticated endpoint)

---

<div class="post-metadata">

**Author:** ![MJ\_Maverick](https://sea1.discourse-cdn.com/eveonline/user_avatar/forums.eveonline.com/mj_maverick/32/465668_2.png) [@MJ\_Maverick](https://forums.eveonline.com/u/MJ_Maverick)\
**Post date:** [February 28, 2018, 2:59pm UTC](https://forums.eveonline.com/t/periodically-checking-charaterownerhash/60227/3 "2018-02-28T14:59:20Z")

</div>

Bugger, more effort than it’s worth at the moment then. 😕

---

<div class="post-metadata">

**Author:** ![Brock\_Khans](https://sea1.discourse-cdn.com/eveonline/user_avatar/forums.eveonline.com/brock_khans/32/409174_2.png) [@Brock\_Khans](https://forums.eveonline.com/u/Brock_Khans)\
**Post date:** [February 28, 2018, 3:16pm UTC](https://forums.eveonline.com/t/periodically-checking-charaterownerhash/60227/4 "2018-02-28T15:16:54Z")

</div>

Effort? Write it once, and then it just works in like \< 1 second…

---

<div class="post-metadata">

**Author:** ![MJ\_Maverick](https://sea1.discourse-cdn.com/eveonline/user_avatar/forums.eveonline.com/mj_maverick/32/465668_2.png) [@MJ\_Maverick](https://forums.eveonline.com/u/MJ_Maverick)\
**Post date:** [February 28, 2018, 3:26pm UTC](https://forums.eveonline.com/t/periodically-checking-charaterownerhash/60227/5 "2018-02-28T15:26:18Z")

</div>

Still learning Curl with PHP tbh, only today built a script that gets all the public information and displays it.

---

<div class="post-metadata">

**Author:** ![Brock\_Khans](https://sea1.discourse-cdn.com/eveonline/user_avatar/forums.eveonline.com/brock_khans/32/409174_2.png) [@Brock\_Khans](https://forums.eveonline.com/u/Brock_Khans)\
**Post date:** [February 28, 2018, 3:27pm UTC](https://forums.eveonline.com/t/periodically-checking-charaterownerhash/60227/6 "2018-02-28T15:27:23Z")

</div>

[https://github.com/fuzzysteve/eve-sso-auth](https://github.com/fuzzysteve/eve-sso-auth) May help you out. Uses curl, stores stuff in a DB for basic authing/storing of info.

---

<div class="post-metadata">

**Author:** ![MJ\_Maverick](https://sea1.discourse-cdn.com/eveonline/user_avatar/forums.eveonline.com/mj_maverick/32/465668_2.png) [@MJ\_Maverick](https://forums.eveonline.com/u/MJ_Maverick)\
**Post date:** [February 28, 2018, 3:30pm UTC](https://forums.eveonline.com/t/periodically-checking-charaterownerhash/60227/7 "2018-02-28T15:30:24Z")

</div>

That’s exactly what I’ve been using lol, I just haven’t come across an example of refreshing yet. Nor do I know how long the refresh last and if there’s anything I need to know that might stop it working etc.

---

<div class="post-metadata">

**Author:** ![Brock\_Khans](https://sea1.discourse-cdn.com/eveonline/user_avatar/forums.eveonline.com/brock_khans/32/409174_2.png) [@Brock\_Khans](https://forums.eveonline.com/u/Brock_Khans)\
**Post date:** [February 28, 2018, 3:40pm UTC](https://forums.eveonline.com/t/periodically-checking-charaterownerhash/60227/8 "2018-02-28T15:40:57Z")

</div>

When you request tokens the access\_token is good for 1200 seconds or 20 minutes. Once that expires you now have to use the refresh\_token to request a new access\_token which is then good for another 20 minutes.

Getting started I’d look over all the resources on [Tips for a developer starting out with ESI!](https://forums.eveonline.com/t/tips-for-a-developer-starting-out-with-esi/50743)

---

<div class="post-metadata">

**Author:** ![MJ\_Maverick](https://sea1.discourse-cdn.com/eveonline/user_avatar/forums.eveonline.com/mj_maverick/32/465668_2.png) [@MJ\_Maverick](https://forums.eveonline.com/u/MJ_Maverick)\
**Post date:** [February 28, 2018, 3:42pm UTC](https://forums.eveonline.com/t/periodically-checking-charaterownerhash/60227/9 "2018-02-28T15:42:53Z")

</div>

Ah, thank you.

---

<div class="post-metadata">

**Author:** ![Steve\_Ronuken](https://sea1.discourse-cdn.com/eveonline/user_avatar/forums.eveonline.com/steve_ronuken/32/373894_2.png) [@Steve\_Ronuken](https://forums.eveonline.com/u/Steve_Ronuken)\
**Post date:** [February 28, 2018, 4:20pm UTC](https://forums.eveonline.com/t/periodically-checking-charaterownerhash/60227/10 "2018-02-28T16:20:47Z")

</div>

I’d suggest looking at Guzzle for php. It wraps up curl into something a bit nicer.

---

<div class="post-metadata">

**Author:** ![Brock\_Khans](https://sea1.discourse-cdn.com/eveonline/user_avatar/forums.eveonline.com/brock_khans/32/409174_2.png) [@Brock\_Khans](https://forums.eveonline.com/u/Brock_Khans)\
**Post date:** [February 28, 2018, 4:52pm UTC](https://forums.eveonline.com/t/periodically-checking-charaterownerhash/60227/11 "2018-02-28T16:52:20Z")

</div>

I started learning using that curl repo and then learned to convert it into using Guzzle. [https://github.com/skiedude/evestructures/blob/master/app/Http/Controllers/CharacterController.php#L72](https://github.com/skiedude/evestructures/blob/master/app/Http/Controllers/CharacterController.php#L72) is my implementation of using Guzzle (which isn’t the bestly coded, but it fills my needs)

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/eveonline/original/3X/4/1/41ec4921cbaca7a6f9ea556e7cc20018461eae5e.png) [@system](https://forums.eveonline.com/u/system)\
**Post date:** [May 29, 2018, 4:52pm UTC](https://forums.eveonline.com/t/periodically-checking-charaterownerhash/60227/12 "2018-05-29T16:52:32Z")

</div>

Closed on May 29, 2018, 4:52pm UTC

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.
