GithubHelp home page GithubHelp logo

Comments (4)

Iwanjka avatar Iwanjka commented on June 9, 2024

This looks like the same kind of mysterious insertion...
https://www.drupal.org/node/332499
a new observation is that some days the insertions stays away, and that for instance a week later it starts again... strange!

from apps-script-oauth1.

erickoledadevrel avatar erickoledadevrel commented on June 9, 2024

Strange, I've never seen those tags before. What does your code look like?

from apps-script-oauth1.

Iwanjka avatar Iwanjka commented on June 9, 2024

Erick, thank you for responding...

The code sniplet looks like this:
[the passed service object has been created via the oauth1 github class, i added two 'text searches' to check if the 'wbr' items are generated in 'my own code', as far as i can see this is not happening (i don't get notification emails, so the 'wbr' tags myst arise somewhere deeper in the 'protocol stack')]

Iwanjka ([email protected])

function atomicTwitterAPICall1_1_statuses_update(theParametersString,service){
// * Specification:
// * Pass everything which is passed normally after 'json?'

// see remark James Petersen: escaping false
var requestData = {
"method": "POST",
"escaping":false
};

var theBaseURL = "https://api.twitter.com/1.1/statuses/update.json?";
var theCompleteCallURL = theBaseURL + theParametersString;

var url = theCompleteCallURL;
logTwitterAPIPrePostDetail("logTwitterAPIPrePostDetail - Pre - function atomicTwitterAPICall1_1_statuses_update(), the completer URL: "+theCompleteCallURL);
MasterMixerProject.setTwitter_Active_URL_Call(iAm,theCompleteCallURL);
//service = getTwitterService();

var indexWBR = theCompleteCallURL.indexOf("%3Cwbr%3E"); // =
if (indexWBR>-1){
MailApp.sendEmail("[email protected]", "EUREKA INTERCEPTED in post","");
}

// Find out where 'wbr' comes from... non escaped version:
var indexWBR = theCompleteCallURL.indexOf("wbr"); // wbr
if (indexWBR>-1){
MailApp.sendEmail("[email protected]", "EUREKA INTERCEPTED wbr in post","");
}

var result = service.fetch(url,requestData);

from apps-script-oauth1.

erickoledadevrel avatar erickoledadevrel commented on June 9, 2024

You should no longer be disabling escaping when posting to twitter. See the Twitter sample for the correct usage: https://github.com/googlesamples/apps-script-oauth1/blob/master/samples/Twitter.gs

from apps-script-oauth1.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.