vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB5 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=262)
-   -   How to generate the token and secret? (https://vborg.vbsupport.ru/showthread.php?t=323456)

movcel 09-13-2016 09:50 AM

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

noypiscripter 09-13-2016 02:58 PM

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.

movcel 09-13-2016 03:49 PM

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¡

noypiscripter 09-13-2016 08:34 PM

Is that module in the same forum or is it in a different website?

movcel 09-14-2016 09:36 AM

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

noypiscripter 09-14-2016 06:34 PM

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.

movcel 09-14-2016 09:11 PM

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


All times are GMT. The time now is 04:00 PM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01033 seconds
  • Memory Usage 1,719KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (7)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.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/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.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
  • printthread_start
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete