Go Back   vb.org Archive > vBulletin 5 Connect Discussion > vB5 General Discussions
  #1  
Old 09-13-2016, 09:50 AM
movcel movcel is offline
 
Join Date: Jul 2016
Posts: 5
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default How to generate the token and secret?

I need to insert manually into the database a user vbulletin but I need to know how to generate the information that goes on the field and secret token user table of the database.

Note: I need please function or where the file generated is my token and secret
Reply With Quote
  #2  
Old 09-13-2016, 02:58 PM
noypiscripter's Avatar
noypiscripter noypiscripter is offline
 
Join Date: Jul 2013
Posts: 468
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Why not use the user API to add a new user? That will take care of generating the token and secret, you just pass the required user info.
Reply With Quote
  #3  
Old 09-13-2016, 03:49 PM
movcel movcel is offline
 
Join Date: Jul 2016
Posts: 5
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

hello, it happens is that I'm developing a separate module to register users on my own in the vbulletin, and I need to know which way the vbulletin 5 generates the token and secret of users.

How I can implement the api to add users from my other website vbulletin¡
Reply With Quote
  #4  
Old 09-13-2016, 08:34 PM
noypiscripter's Avatar
noypiscripter noypiscripter is offline
 
Join Date: Jul 2013
Posts: 468
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Is that module in the same forum or is it in a different website?
Reply With Quote
  #5  
Old 09-14-2016, 09:36 AM
movcel movcel is offline
 
Join Date: Jul 2016
Posts: 5
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Searching the web I found that by vbulletin API using the following url can be registered users.

The problem that arises is that not where the parameter is achieved:
api_c, api_s, api_sig, api_v.

http://www.yourforumurl.com/api.php?...alue1&a=value2

From the example, you'll see:
api.php specific params are prefixed with 'api_'
api_m = method name
api_c = ClientID.
api_s = Access token.
api_sig = signature of the request
api_v = the api version called by the request
b = value1 & a = value2 are the HTTP GET params accepted by the method (forum_markread) of the API

It is a different vbulletin website, what you want is that when they sign on my external to vbulletin system at the same time to implement a function to register with the same user data in the forum of vbulletin, but for that you need to know as the token and secret field of user table is generated
Reply With Quote
  #6  
Old 09-14-2016, 06:34 PM
noypiscripter's Avatar
noypiscripter noypiscripter is offline
 
Join Date: Jul 2013
Posts: 468
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Does the external website use PHP and reside in the same server as vBulletin? If so, you could call the API directly without having to send an HTTP request. That would be faster in terms of performance as there is no HTTP request overhead.
Reply With Quote
  #7  
Old 09-14-2016, 09:11 PM
movcel movcel is offline
 
Join Date: Jul 2016
Posts: 5
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

correct the site is on the same server but as I use the api ?.
I was watching that can be used for http, but I need the idClient, Access token, signature of the request and do not know where to get that in vbulletin You could give me a help
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 11:40 AM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.04256 seconds
  • Memory Usage 2,205KB
  • Queries Executed 11 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (1)ad_showthread_firstpost
  • (1)ad_showthread_firstpost_sig
  • (1)ad_showthread_firstpost_start
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (7)post_thanks_box
  • (7)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (7)post_thanks_postbit_info
  • (7)postbit
  • (7)postbit_onlinestatus
  • (7)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete